summaryrefslogtreecommitdiff
path: root/svx/source/sdr
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2019-04-27 20:06:18 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2019-04-27 22:27:00 +0200
commite300e8fbe891e23777ce95556488010f6f59c0e6 (patch)
tree0a462669784e889bd73fd205d6cc12c7fb75c78e /svx/source/sdr
parent22f4ad10ff9caef430ede01dc3acfe5fdf512d9b (diff)
tdf#120703 PVS: re-read aPrefSize after updating it
V581 The conditional expressions of the 'if' statements situated alongside each other are identical. Check lines: 645, 655 Since commit 37aa7d81aacaae12dfe0fd2ade2779235bbf72f1 Change-Id: I7b4d2d58e51cf98ac6294d1feacd28c3a8761d81 Reviewed-on: https://gerrit.libreoffice.org/71431 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'svx/source/sdr')
-rw-r--r--svx/source/sdr/primitive2d/sdrattributecreator.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/svx/source/sdr/primitive2d/sdrattributecreator.cxx b/svx/source/sdr/primitive2d/sdrattributecreator.cxx
index 806d4038e7a4..fe657f5b4974 100644
--- a/svx/source/sdr/primitive2d/sdrattributecreator.cxx
+++ b/svx/source/sdr/primitive2d/sdrattributecreator.cxx
@@ -649,6 +649,7 @@ namespace drawinglayer
{
aGraphic.SetPrefSize(aGraphic.GetBitmapEx().GetSizePixel());
aGraphic.SetPrefMapMode(MapMode(MapUnit::MapPixel));
+ aPrefSize = aGraphic.GetPrefSize();
}
}