Code

Make sure style is invalidated when setting fill/stroke color in text objects
authormiklosh <miklosh@users.sourceforge.net>
Fri, 17 Aug 2007 12:46:51 +0000 (12:46 +0000)
committermiklosh <miklosh@users.sourceforge.net>
Fri, 17 Aug 2007 12:46:51 +0000 (12:46 +0000)
src/extension/internal/pdfinput/pdf-parser.cpp

index 9233361b2ea2263121fa2b55bb10e98bc04bb6a2..c9bbda662fb70aba27e96f684b7bf8e3fa38df3d 100644 (file)
@@ -1126,6 +1126,7 @@ void PdfParser::opSetFillColorN(Object args[], int numArgs) {
     if (args[numArgs-1].isName() &&
        (pattern = res->lookupPattern(args[numArgs-1].getName()))) {
       state->setFillPattern(pattern);
+      builder->updateStyle(state);
     }
 
   } else {
@@ -1169,6 +1170,7 @@ void PdfParser::opSetStrokeColorN(Object args[], int numArgs) {
     if (args[numArgs-1].isName() &&
        (pattern = res->lookupPattern(args[numArgs-1].getName()))) {
       state->setStrokePattern(pattern);
+      builder->updateStyle(state);
     }
 
   } else {