summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e26270c)
git-svn-id: http://lassie.dyndns-server.com/svn/gargoyle-gtk@85
ddfedd41-794f-dd11-ae45-
00112f111e67
VALID_WINDOW(win, return);
g_return_if_fail(win->type == wintype_TextGrid);
VALID_WINDOW(win, return);
g_return_if_fail(win->type == wintype_TextGrid);
+ /* Don't do anything if the window is shrunk down to nothing */
+ if(win->width == 0 || win->height == 0)
+ return;
+
/* Calculate actual position if cursor is moved past the right edge */
if(xpos >= win->width)
{
/* Calculate actual position if cursor is moved past the right edge */
if(xpos >= win->width)
{