small fix
This commit is contained in:
@ -447,8 +447,16 @@ edit_selection_draw (Tool *tool)
|
|||||||
gdisp = (GDisplay *) tool->gdisp_ptr;
|
gdisp = (GDisplay *) tool->gdisp_ptr;
|
||||||
select = gdisp->select;
|
select = gdisp->select;
|
||||||
|
|
||||||
diff_x = 0; /*SCALEX (gdisp, (edit_select.x - edit_select.origx));*/
|
if (edit_select.edit_type == FloatingSelTranslate)
|
||||||
diff_y = 0; /*SCALEY (gdisp, (edit_select.y - edit_select.origy));*/
|
{
|
||||||
|
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)
|
switch (edit_select.edit_type)
|
||||||
{
|
{
|
||||||
|
@ -447,8 +447,16 @@ edit_selection_draw (Tool *tool)
|
|||||||
gdisp = (GDisplay *) tool->gdisp_ptr;
|
gdisp = (GDisplay *) tool->gdisp_ptr;
|
||||||
select = gdisp->select;
|
select = gdisp->select;
|
||||||
|
|
||||||
diff_x = 0; /*SCALEX (gdisp, (edit_select.x - edit_select.origx));*/
|
if (edit_select.edit_type == FloatingSelTranslate)
|
||||||
diff_y = 0; /*SCALEY (gdisp, (edit_select.y - edit_select.origy));*/
|
{
|
||||||
|
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)
|
switch (edit_select.edit_type)
|
||||||
{
|
{
|
||||||
|
@ -447,8 +447,16 @@ edit_selection_draw (Tool *tool)
|
|||||||
gdisp = (GDisplay *) tool->gdisp_ptr;
|
gdisp = (GDisplay *) tool->gdisp_ptr;
|
||||||
select = gdisp->select;
|
select = gdisp->select;
|
||||||
|
|
||||||
diff_x = 0; /*SCALEX (gdisp, (edit_select.x - edit_select.origx));*/
|
if (edit_select.edit_type == FloatingSelTranslate)
|
||||||
diff_y = 0; /*SCALEY (gdisp, (edit_select.y - edit_select.origy));*/
|
{
|
||||||
|
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)
|
switch (edit_select.edit_type)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user