From 48c0a003648da4ec8199d2c74605d597b644e2b8 Mon Sep 17 00:00:00 2001 From: miklosh Date: Fri, 17 Aug 2007 12:46:51 +0000 Subject: [PATCH] Make sure style is invalidated when setting fill/stroke color in text objects --- src/extension/internal/pdfinput/pdf-parser.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/extension/internal/pdfinput/pdf-parser.cpp b/src/extension/internal/pdfinput/pdf-parser.cpp index 9233361b2..c9bbda662 100644 --- a/src/extension/internal/pdfinput/pdf-parser.cpp +++ b/src/extension/internal/pdfinput/pdf-parser.cpp @@ -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 { -- 2.30.2