summaryrefslogtreecommitdiff
authorFabio D'Urso <fabiodurso@hotmail.it>2014-04-14 21:35:50 (GMT)
committer Albert Astals Cid <aacid@kde.org>2014-04-14 21:38:52 (GMT)
commit8073852c84b71257d487aa8a46e441aa82f4b42c (patch) (side-by-side diff)
treec35569712f57328ff314cdc0305a034941cb3fe1
parent1fbf98664c0879ac035a63602242a910c0c1d316 (diff)
downloadpoppler-master.zip
poppler-master.tar.gz
qt: Fix missing ! in TextAnnotation::setInplaceIntentHEADmaster
CID #16814
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--qt4/src/poppler-annotation.cc2
-rw-r--r--qt5/src/poppler-annotation.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/qt4/src/poppler-annotation.cc b/qt4/src/poppler-annotation.cc
index 297cd86..70a5ea2 100644
--- a/qt4/src/poppler-annotation.cc
+++ b/qt4/src/poppler-annotation.cc
@@ -2062,7 +2062,7 @@ void TextAnnotation::setInplaceIntent( TextAnnotation::InplaceIntent intent )
{
Q_D( TextAnnotation );
- if (d->pdfAnnot)
+ if (!d->pdfAnnot)
{
d->inplaceIntent = intent;
return;
diff --git a/qt5/src/poppler-annotation.cc b/qt5/src/poppler-annotation.cc
index 62ccaa5..e6d331d 100644
--- a/qt5/src/poppler-annotation.cc
+++ b/qt5/src/poppler-annotation.cc
@@ -2049,7 +2049,7 @@ void TextAnnotation::setInplaceIntent( TextAnnotation::InplaceIntent intent )
{
Q_D( TextAnnotation );
- if (d->pdfAnnot)
+ if (!d->pdfAnnot)
{
d->inplaceIntent = intent;
return;