Re: tkined-1.3.2 core dumped

Juergen Schoenwaelder (schoenw@ibr.cs.tu-bs.de)
Fri, 14 Jul 1995 14:05:35 +0200

Hi!

bal@panther.inforis.nnov.su (Alexander Balandin) said:

Alexander> About tkined 1.3.2. When i load map produiced by
Alexander> tkined i got core dump.

Alexander> So i change Erik's fix code back, all works okey.

The correct version of the code that handles expanded groups in
m_move() should look like the lines below.

Juergen

/*
* Don't move objects outside of the canvas! Beware of expanded
* groups! Fix done by Erik.
*/

if (object->editor
&& !(object->type == TKINED_GROUP && !object->collapsed)) {
if (object->x+x < 0) x = - object->x;
if (object->y+y < 0) y = - object->y;
if (object->x+x > object->editor->width)
x = object->editor->width - object->x;
if (object->y+y > object->editor->height)
y = object->editor->height - object->y;
}