[dia] wpg-import: fix color swapping for polygon



commit 1252b9a8595a2faf6f83e223a226590359ae9a61
Author: Hans Breuer <hans breuer org>
Date:   Sat Jun 14 12:56:51 2014 +0200

    wpg-import: fix color swapping for polygon
    
    the fill color was derived from stroke color and vice versa

 plug-ins/wpg/wpg-import.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/wpg/wpg-import.c b/plug-ins/wpg/wpg-import.c
index 3651bdd..26809db 100644
--- a/plug-ins/wpg/wpg-import.c
+++ b/plug-ins/wpg/wpg-import.c
@@ -148,8 +148,8 @@ _do_polygon (WpgImportRenderer *ren, Point *points, int iNum)
   if (ren->LineAttr.Type == WPG_LA_NONE && ren->FillAttr.Type == WPG_FA_HOLLOW)
     return; /* nothing to do */
   DIA_RENDERER_GET_CLASS(ren)->draw_polygon (DIA_RENDERER(ren), points, iNum,
-                                            (ren->LineAttr.Type != WPG_LA_NONE) ? &ren->stroke : NULL,
-                                            (ren->FillAttr.Type != WPG_FA_HOLLOW) ? &ren->fill : NULL);
+                                            (ren->FillAttr.Type != WPG_FA_HOLLOW) ? &ren->fill : NULL,
+                                            (ren->LineAttr.Type != WPG_LA_NONE) ? &ren->stroke : NULL);
 }
 static void
 _do_rect (WpgImportRenderer *ren, Point *points)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]