mirror of
git://projects.qi-hardware.com/fped.git
synced 2024-11-25 16:55:20 +02:00
When entering the first vectors, where were a number of display anomalies
such a vectors pointing in the wrong direction. They were caused by overflows due to inadequate zoom settings. - gui.c (change_world): if the extents have grown, zoom to extents git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5756 99fdad57-331a-0410-800a-d7fa5415bdb3
This commit is contained in:
parent
a830226830
commit
83669c6db7
8
gui.c
8
gui.c
@ -252,11 +252,19 @@ static void make_center_area(GtkWidget *vbox)
|
||||
|
||||
void change_world(void)
|
||||
{
|
||||
struct bbox before, after;
|
||||
|
||||
inst_deselect();
|
||||
status_begin_reporting();
|
||||
before = inst_get_bbox();
|
||||
instantiate();
|
||||
after = inst_get_bbox();
|
||||
label_in_box_bg(active_frame->label, COLOR_FRAME_SELECTED);
|
||||
build_frames(frames_box);
|
||||
if (after.min.x < before.min.x || after.min.y < before.min.y ||
|
||||
after.max.x > before.max.x || after.max.y > before.max.y)
|
||||
zoom_to_extents();
|
||||
else
|
||||
redraw();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user