summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-08-01 10:10:16 +0100
committerMichael Stahl <Michael.Stahl@cib.de>2018-08-07 18:37:14 +0200
commit1835e0c82fca788aef823d91bda4fedef26cd712 (patch)
tree0ea367ab010962b322ea651a2b347dd7f9da2104 /vcl/source
parent510f335621db11873499751d63be6f8460c38915 (diff)
Resolves: rhbz#1610692 rectangles ctor takes topleft, bottomright points
so pass arguments in the topleft, bottomright order to avoid eventual... Gtk-CRITICAL **: 09:43:33.896: gtk_widget_queue_draw_area: assertion 'height >= 0' failed Change-Id: I2396f49470274331c49275a5e6d707f59277be4a Reviewed-on: https://gerrit.libreoffice.org/58392 Tested-by: Jenkins Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/control/fixed.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/control/fixed.cxx b/vcl/source/control/fixed.cxx
index dac10a896278..eeba87afab05 100644
--- a/vcl/source/control/fixed.cxx
+++ b/vcl/source/control/fixed.cxx
@@ -531,11 +531,11 @@ void FixedLine::ImplDraw(vcl::RenderContext& rRenderContext)
rRenderContext.DrawText(aTextPt, aText, 0, aText.getLength());
rRenderContext.Pop();
if (aOutSize.Height() - aStartPt.Y() > FIXEDLINE_TEXT_BORDER)
- aDecoView.DrawSeparator(Point(aStartPt.X(), aOutSize.Height() - 1),
- Point(aStartPt.X(), aStartPt.Y() + FIXEDLINE_TEXT_BORDER));
+ aDecoView.DrawSeparator(Point(aStartPt.X(), aStartPt.Y() + FIXEDLINE_TEXT_BORDER),
+ Point(aStartPt.X(), aOutSize.Height() - 1));
if (aStartPt.Y() - nWidth - FIXEDLINE_TEXT_BORDER > 0)
- aDecoView.DrawSeparator(Point(aStartPt.X(), aStartPt.Y() - nWidth - FIXEDLINE_TEXT_BORDER),
- Point(aStartPt.X(), 0));
+ aDecoView.DrawSeparator(Point(aStartPt.X(), 0),
+ Point(aStartPt.X(), aStartPt.Y() - nWidth - FIXEDLINE_TEXT_BORDER));
}
else
{