summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-03-07 13:50:16 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-03-07 19:42:59 +0100
commit20113d8f42a953e1834840e63f2fe914dacbabbc (patch)
tree42a6188c91c4d73b3c1f303518e709116692ac2c /chart2
parent156b5a15878394576dd008c5a07160721d333ab7 (diff)
no need to make it a multiple of 3
Change-Id: If9f16461045b6a9f7b79579e84dc09e4475dbf3c
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/view/main/DummyXShape.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/chart2/source/view/main/DummyXShape.cxx b/chart2/source/view/main/DummyXShape.cxx
index 02bafff1cd2f..5db0d4b87904 100644
--- a/chart2/source/view/main/DummyXShape.cxx
+++ b/chart2/source/view/main/DummyXShape.cxx
@@ -799,13 +799,13 @@ DummyText::DummyText(const OUString& rText, const tNameSequence& rNames,
Rectangle aRect;
aDevice.SetFont(aFont);
aDevice.GetTextBoundRect(aRect, rText);
- int screenWidth = (aRect.BottomRight().X() + 3) & ~3;
- int screenHeight = (aRect.BottomRight().Y() + 3) & ~3;
+ int screenWidth = (aRect.BottomRight().X());
+ int screenHeight = (aRect.BottomRight().Y());
aDevice.SetOutputSizePixel(Size(screenWidth * 3, screenHeight));
aDevice.SetBackground(Wallpaper(COL_TRANSPARENT));
aDevice.DrawText(Point(0, 0), rText);
- int bmpWidth = (aRect.Right() - aRect.Left() + 3) & ~3;
- int bmpHeight = (aRect.Bottom() - aRect.Top() + 3) & ~3;
+ int bmpWidth = aRect.Right() - aRect.Left();
+ int bmpHeight = aRect.Bottom() - aRect.Top();
maBitmap = BitmapEx(aDevice.GetBitmapEx(aRect.TopLeft(), Size(bmpWidth, bmpHeight)));
if(rTrans.hasValue())