|
|
|
|
@ -169,9 +169,7 @@ void PopplerAnnotationProxy::notifyModification(const Okular::Annotation *okl_an |
|
|
|
|
Poppler::TextAnnotation *ppl_txtann = static_cast<Poppler::TextAnnotation *>(ppl_ann); |
|
|
|
|
ppl_txtann->setTextIcon(okl_txtann->textIcon()); |
|
|
|
|
ppl_txtann->setTextFont(okl_txtann->textFont()); |
|
|
|
|
#ifdef HAVE_POPPLER_0_69 |
|
|
|
|
ppl_txtann->setTextColor(okl_txtann->textColor()); |
|
|
|
|
#endif // HAVE_POPPLER_0_69
|
|
|
|
|
ppl_txtann->setInplaceAlign(okl_txtann->inplaceAlignment()); |
|
|
|
|
ppl_txtann->setCalloutPoints(QVector<QPointF>()); |
|
|
|
|
ppl_txtann->setInplaceIntent((Poppler::TextAnnotation::InplaceIntent)okl_txtann->inplaceIntent()); |
|
|
|
|
@ -419,9 +417,7 @@ static Okular::Annotation *createAnnotationFromPopplerAnnotation(Poppler::TextAn |
|
|
|
|
oTextAnn->setTextType(popplerToOkular(popplerAnnotation->textType())); |
|
|
|
|
oTextAnn->setTextIcon(popplerAnnotation->textIcon()); |
|
|
|
|
oTextAnn->setTextFont(popplerAnnotation->textFont()); |
|
|
|
|
#ifdef HAVE_POPPLER_0_69 |
|
|
|
|
oTextAnn->setTextColor(popplerAnnotation->textColor()); |
|
|
|
|
#endif |
|
|
|
|
// this works because we use the same 0:left, 1:center, 2:right meaning both in poppler and okular
|
|
|
|
|
oTextAnn->setInplaceAlignment(popplerAnnotation->inplaceAlign()); |
|
|
|
|
oTextAnn->setInplaceIntent(popplerToOkular(popplerAnnotation->inplaceIntent())); |
|
|
|
|
|