[dia] pdf-import: fix gradient emulation



commit 5ab8c2861c6a8336afe52d73d01ebc8e565b2000
Author: Hans Breuer <hans breuer org>
Date:   Sun Nov 18 13:13:15 2012 +0100

    pdf-import: fix gradient emulation
    
    gradients are just emulated - but not if returning true
    from useFillColorStop()

 plug-ins/pdf/pdf-import.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/pdf/pdf-import.cpp b/plug-ins/pdf/pdf-import.cpp
index 22ea87f..4499ff4 100644
--- a/plug-ins/pdf/pdf-import.cpp
+++ b/plug-ins/pdf/pdf-import.cpp
@@ -185,8 +185,8 @@ public :
   { 
     this->fill_color.alpha = state->getFillOpacity();
   }
-  //! gradients are just emulated
-  GBool useFillColorStop() { return gTrue; }
+  //! gradients are just emulated - but not if returning true here
+  GBool useFillColorStop() { return gFalse; }
   void updateFillColorStop(GfxState * state, double /*offset*/)
   {
     GfxRGB color;



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