vcl/source/gdi/gdimtf.cxx |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit 1bc9ca7fac160ad1ff03695c0343347cffb37b29
Author: Stephan Bergmann <sberg...@redhat.com>
Date:   Wed Jul 9 08:47:47 2014 +0200

    Avoid undefined premature downcast to potentially wrong type
    
    Change-Id: I53bf8b74edab720fccc829f9228f7d9c4a8c2dad

diff --git a/vcl/source/gdi/gdimtf.cxx b/vcl/source/gdi/gdimtf.cxx
index 4fc7d3f..36c1022 100644
--- a/vcl/source/gdi/gdimtf.cxx
+++ b/vcl/source/gdi/gdimtf.cxx
@@ -362,11 +362,10 @@ void GDIMetaFile::Play( OutputDevice* pOut, size_t nPos )
             {
                 if( !Hook() && pAction )
                 {
-                    MetaCommentAction* pCommentAct = 
static_cast<MetaCommentAction*>(pAction);
                     if( pAction->GetType() == META_COMMENT_ACTION &&
-                        pCommentAct->GetComment() == 
"DELEGATE_PLUGGABLE_RENDERER" )
+                        static_cast<MetaCommentAction*>(pAction)->GetComment() 
== "DELEGATE_PLUGGABLE_RENDERER" )
                     {
-                        ImplDelegate2PluggableRenderer(pCommentAct, pOut);
+                        
ImplDelegate2PluggableRenderer(static_cast<MetaCommentAction*>(pAction), pOut);
                     }
                     else
                     {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to