incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h..@apache.org
Subject svn commit: r1177543 - /incubator/ooo/trunk/main/vcl/unx/generic/gdi/salgdi.cxx
Date Fri, 30 Sep 2011 07:58:21 GMT
Author: hdu
Date: Fri Sep 30 07:58:21 2011
New Revision: 1177543

URL: http://svn.apache.org/viewvc?rev=1177543&view=rev
Log:
avoid magic constants for SALCOLOR_NONE

Modified:
    incubator/ooo/trunk/main/vcl/unx/generic/gdi/salgdi.cxx

Modified: incubator/ooo/trunk/main/vcl/unx/generic/gdi/salgdi.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/vcl/unx/generic/gdi/salgdi.cxx?rev=1177543&r1=1177542&r2=1177543&view=diff
==============================================================================
--- incubator/ooo/trunk/main/vcl/unx/generic/gdi/salgdi.cxx (original)
+++ incubator/ooo/trunk/main/vcl/unx/generic/gdi/salgdi.cxx Fri Sep 30 07:58:21 2011
@@ -832,7 +832,7 @@ void X11SalGraphics::drawPolyLine( sal_u
 // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 void X11SalGraphics::drawPolyLine( sal_uLong nPoints, const SalPoint *pPtAry, bool bClose
)
 {
-    if( nPenColor_ != 0xFFFFFFFF )
+    if( nPenColor_ != SALCOLOR_NONE)
     {
         SalPolyLine Points( nPoints, pPtAry );
         
@@ -903,7 +903,7 @@ void X11SalGraphics::drawPolygon( sal_uL
                       &Points[0], nPoints,
                       Complex, CoordModeOrigin );
     
-    if( nPenColor_ != 0xFFFFFFFF )
+    if( nPenColor_ != SALCOLOR_NONE)
         DrawLines( nPoints, Points, SelectPen(), true );
 }
 



Mime
View raw message