Skip to content

Commit

Permalink
Fix regression: importing image making it upside-down (#2333)
Browse files Browse the repository at this point in the history
When "Fit to Canvas" wasn't set in Import Image dialog.

fix #2328
  • Loading branch information
rodolforg committed Sep 29, 2021
1 parent cbdc86a commit dda0317
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions synfig-studio/src/synfigapp/canvasinterface.cpp
Expand Up @@ -724,10 +724,6 @@ static void update_layer_size(const RendDesc& rend_desc, Layer::Handle& layer, b
} else {
x[0] = w*rend_desc.get_pw();
x[1] = h*rend_desc.get_ph();
if ((size[0] < 0))
x[0] = -x[0];
if ((size[1] < 0))
x[1] = -x[1];
}

if(!layer->set_param("tl",ValueBase(-x/2)))
Expand Down

0 comments on commit dda0317

Please sign in to comment.