Skip to content

Commit

Permalink
[477750] Fix ThumbnailUpdater did not properly handle offset figures.
Browse files Browse the repository at this point in the history
Ensured that the tileGraphics is translated by the scaled source figure
location instead of the unscaled one.
  • Loading branch information
nyssen committed Sep 17, 2015
1 parent 3d46686 commit 80bcf87
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -178,7 +178,8 @@ public void run() {
// image and copying from it into the thumbnail image, we are safe.
org.eclipse.draw2d.geometry.Point p = getSourceRectangle()
.getLocation();
tileGraphics.translate(-p.x - sx1, -p.y - sy1);
tileGraphics.translate(-p.x * getScaleX() - sx1, -p.y * getScaleY()
- sy1);
tileGraphics.scale(getScaleX());
sourceFigure.paint(tileGraphics);
tileGraphics.popState();
Expand Down

0 comments on commit 80bcf87

Please sign in to comment.