[poppler] glib/poppler-annot.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Feb 23 22:09:28 UTC 2021


 glib/poppler-annot.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 03b6705006e563c95cfcad47fa3d3c4c2e248651
Author: Albert Astals Cid <aacid at kde.org>
Date:   Sat Feb 20 23:05:22 2021 +0100

    poppler_annot_free_text_get_callout_line: Fix wrong static cast
    
    static_cast always "suceeds" so it makes no sense using it to check if
    the callout is multiline or not

diff --git a/glib/poppler-annot.cc b/glib/poppler-annot.cc
index a68a9eb6..f4c5bb1f 100644
--- a/glib/poppler-annot.cc
+++ b/glib/poppler-annot.cc
@@ -1627,7 +1627,7 @@ PopplerAnnotCalloutLine *poppler_annot_free_text_get_callout_line(PopplerAnnotFr
         callout->x2 = line->getX2();
         callout->y2 = line->getY2();
 
-        if ((multiline = static_cast<AnnotCalloutMultiLine *>(line))) {
+        if ((multiline = dynamic_cast<AnnotCalloutMultiLine *>(line))) {
             callout->multiline = TRUE;
             callout->x3 = multiline->getX3();
             callout->y3 = multiline->getY3();


More information about the poppler mailing list