Commit 6b827d9a authored by claes's avatar claes

ChangeText caused segfault in no textobject was selected

parent 50fcaa90
/* /*
* Proview $Id: wb_foe_callbacks.c,v 1.13 2005-10-21 16:11:22 claes Exp $ * Proview $Id: wb_foe_callbacks.c,v 1.14 2006-05-31 08:11:03 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -1010,6 +1010,7 @@ XmAnyCallbackStruct *data; ...@@ -1010,6 +1010,7 @@ XmAnyCallbackStruct *data;
{ {
foe_message( foectx, "Select one text object"); foe_message( foectx, "Select one text object");
BEEP; BEEP;
return;
} }
switch ( nodelist[0]->ln.cid) { switch ( nodelist[0]->ln.cid) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment