summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorHeiko Tietze <tietze.heiko@gmail.com>2017-08-22 12:39:49 +0200
committerHeiko Tietze <tietze.heiko@googlemail.com>2017-08-23 00:20:08 +0200
commit4d60d96a22ef2f67db7c7e99981447bd81f776c4 (patch)
tree0527f488f4064512df70b0206a0f2dc975037c04 /sfx2
parentb45446fcb4958b13bc94e70e2d3d1940db3322e2 (diff)
tdf#111844 infobar icons/text on high dpi
scaling factor added to text position Change-Id: Iaeb48fd4ac0439680fa3b6ca43f23a617efe1457 Reviewed-on: https://gerrit.libreoffice.org/41417 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Heiko Tietze <tietze.heiko@googlemail.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/infobar.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/dialog/infobar.cxx b/sfx2/source/dialog/infobar.cxx
index a7db83925b74..e51a24520d96 100644
--- a/sfx2/source/dialog/infobar.cxx
+++ b/sfx2/source/dialog/infobar.cxx
@@ -291,7 +291,7 @@ void SfxInfoBarWindow::Resize()
m_pImage->SetPosSizePixel(Point(4,4), Size(32* fScaleFactor, 32* fScaleFactor));
- Point aMessagePosition(32 + 10 * fScaleFactor, 10 * fScaleFactor);
+ Point aMessagePosition(32 * fScaleFactor + 10 * fScaleFactor, 10 * fScaleFactor);
Size aMessageSize(nX - 20 * fScaleFactor, 20 * fScaleFactor);
m_pMessage->SetPosSizePixel(aMessagePosition, aMessageSize);