summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-07-24 20:38:07 (GMT)
committerMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-07-24 20:38:07 (GMT)
commitd9a31fa02ad92c663b3c5bd0fc5be38b09bc761f (patch)
tree351c8f903a98c9e8a40f2761366ca5206666db0b
parent5e78ca3df5cef47f109af3666bb8ce521d22b63c (diff)
Fix font color parsing in Plucker
-rw-r--r--generators/plucker/unpluck/qunpluck.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/generators/plucker/unpluck/qunpluck.cpp b/generators/plucker/unpluck/qunpluck.cpp
index 37583c3..6416a68 100644
--- a/generators/plucker/unpluck/qunpluck.cpp
+++ b/generators/plucker/unpluck/qunpluck.cpp
@@ -447,7 +447,7 @@ void QUnpluck::ParseText
}
case PLKR_TFC_COLOR:
if (*font) {
- *font--;
+ (*font)--;
if ( !context->stack.isEmpty() )
context->cursor->setCharFormat( context->stack.pop() );
}
@@ -460,7 +460,7 @@ void QUnpluck::ParseText
context->cursor->setCharFormat( format );
}
- *font++;
+ (*font)++;
ptr += fclen;
break;
case PLKR_TFC_BULINE: