psppire-sheet: Avoid CRITICAL unselecting range before window created.
authorBen Pfaff <blp@cs.stanford.edu>
Mon, 9 May 2011 04:24:17 +0000 (21:24 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 10 May 2011 04:34:22 +0000 (21:34 -0700)
commitb6bdcd272fc808fe886c4873ec1ea3179ca1117c
tree2f2e34e7a3d1cdf1c66d86a9fd7cd576d44d6b08
parent9c3c856e0512309c9c301ee41c2d465dbbe9b8c6
psppire-sheet: Avoid CRITICAL unselecting range before window created.

Without this change, File|Open that opens a new datasheet yields:

Gdk-CRITICAL **: gdk_window_invalidate_rect_full: assertion
`GDK_IS_WINDOW (window)' failed

I'm not 100% certain that this is the correct fix--perhaps the client
is at fault for calling this function before a window exists?--but it
does avoid the message.
lib/gtk-contrib/psppire-sheet.c