small fix

This commit is contained in:
Adam D. Moss
1999-03-21 16:58:44 +00:00
parent cc8d71c037
commit 8b9d185c23
3 changed files with 30 additions and 6 deletions

View File

@ -447,8 +447,16 @@ edit_selection_draw (Tool *tool)
gdisp = (GDisplay *) tool->gdisp_ptr;
select = gdisp->select;
diff_x = 0; /*SCALEX (gdisp, (edit_select.x - edit_select.origx));*/
diff_y = 0; /*SCALEY (gdisp, (edit_select.y - edit_select.origy));*/
if (edit_select.edit_type == FloatingSelTranslate)
{
diff_x = SCALEX (gdisp, edit_select.cumlx);
diff_y = SCALEY (gdisp, edit_select.cumly);
}
else
{
diff_x = 0;
diff_y = 0;
}
switch (edit_select.edit_type)
{

View File

@ -447,8 +447,16 @@ edit_selection_draw (Tool *tool)
gdisp = (GDisplay *) tool->gdisp_ptr;
select = gdisp->select;
diff_x = 0; /*SCALEX (gdisp, (edit_select.x - edit_select.origx));*/
diff_y = 0; /*SCALEY (gdisp, (edit_select.y - edit_select.origy));*/
if (edit_select.edit_type == FloatingSelTranslate)
{
diff_x = SCALEX (gdisp, edit_select.cumlx);
diff_y = SCALEY (gdisp, edit_select.cumly);
}
else
{
diff_x = 0;
diff_y = 0;
}
switch (edit_select.edit_type)
{

View File

@ -447,8 +447,16 @@ edit_selection_draw (Tool *tool)
gdisp = (GDisplay *) tool->gdisp_ptr;
select = gdisp->select;
diff_x = 0; /*SCALEX (gdisp, (edit_select.x - edit_select.origx));*/
diff_y = 0; /*SCALEY (gdisp, (edit_select.y - edit_select.origy));*/
if (edit_select.edit_type == FloatingSelTranslate)
{
diff_x = SCALEX (gdisp, edit_select.cumlx);
diff_y = SCALEY (gdisp, edit_select.cumly);
}
else
{
diff_x = 0;
diff_y = 0;
}
switch (edit_select.edit_type)
{