summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Lohmann [pl] <Philipp.Lohmann@Sun.COM>2010-02-25 12:45:43 +0100
committerPhilipp Lohmann [pl] <Philipp.Lohmann@Sun.COM>2010-02-25 12:45:43 +0100
commitd9b2ae228c4d5e932ed3a9f96f97c96e98eadaf4 (patch)
tree936910444f5e374e55d9be104412e18e8648c20d
parentd91dbfa6a18a7a0b531be3e9d47177250cc87605 (diff)
parent33490f377b3f762b82de9e5663b1a8cad3877a02 (diff)
merge
-rw-r--r--vcl/aqua/source/gdi/salgdi.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/aqua/source/gdi/salgdi.cxx b/vcl/aqua/source/gdi/salgdi.cxx
index dedae3ac7cfc..35569c66ba2c 100644
--- a/vcl/aqua/source/gdi/salgdi.cxx
+++ b/vcl/aqua/source/gdi/salgdi.cxx
@@ -694,6 +694,13 @@ void AquaSalGraphics::drawPixel( long nX, long nY, SalColor nSalColor )
void AquaSalGraphics::drawLine( long nX1, long nY1, long nX2, long nY2 )
{
+ if( nX1 == nX2 && nY1 == nY2 )
+ {
+ // #i109453# platform independent code expects at least one pixel to be drawn
+ drawPixel( nX1, nY1 );
+ return;
+ }
+
if( !CheckContext() )
return;