Author: craig
Date: Sun Apr 26 21:16:27 2020
New Revision: 23665

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23665
Log:
Revert removal of dynamic_cast

Modified:
    trunk/Scribus/scribus/colormgmt/sclcms2colormgmtengineimpl.cpp

Modified: trunk/Scribus/scribus/colormgmt/sclcms2colormgmtengineimpl.cpp
URL: 
http://scribus.net/websvn/diff.php?repname=Scribus&rev=23665&path=/trunk/Scribus/scribus/colormgmt/sclcms2colormgmtengineimpl.cpp
==============================================================================
--- trunk/Scribus/scribus/colormgmt/sclcms2colormgmtengineimpl.cpp      
(original)
+++ trunk/Scribus/scribus/colormgmt/sclcms2colormgmtengineimpl.cpp      Sun Apr 
26 21:16:27 2020
@@ -153,7 +153,7 @@
                                ScLcms2ColorProfileImpl* profData = new 
ScLcms2ColorProfileImpl(engine, lcmsProf);
                                profData->m_profileData = data;
                                profData->m_profilePath = filePath;
-                               profile = ScColorProfile(profData);
+                               profile = 
ScColorProfile(dynamic_cast<ScColorProfileData*>(profData));
                                m_profileCache->addProfile(profile);
                        }
                        if (profile.isNull() && lcmsProf)
@@ -178,7 +178,7 @@
                if (!desc.isEmpty())
                        profData->m_profilePath = 
QString("memprofile://%1").arg(desc);
                profData->m_profileData = data;
-               profile = ScColorProfile(profData);
+               profile = 
ScColorProfile(dynamic_cast<ScColorProfileData*>(profData));
        }
        if (profile.isNull() && lcmsProf)
        {
@@ -299,7 +299,7 @@
                {
                        ScLcms2ColorTransformImpl* newTrans = new 
ScLcms2ColorTransformImpl(engine, hTransform);
                        newTrans->setTransformInfo(transInfo);
-                       transform = ScColorTransform(newTrans);
+                       transform = 
ScColorTransform(dynamic_cast<ScColorTransformData*>(newTrans));
                        m_transformPool->addTransform(transform, true);
                }
        }
@@ -368,7 +368,7 @@
                        {
                                ScLcms2ColorTransformImpl* newTrans = new 
ScLcms2ColorTransformImpl(engine, hTransform);
                                newTrans->setTransformInfo(transInfo);
-                               transform = ScColorTransform(newTrans);
+                               transform = 
ScColorTransform(dynamic_cast<ScColorTransformData*>(newTrans));
                                m_transformPool->addTransform(transform, true);
                        }
                }
@@ -402,7 +402,7 @@
                        {
                                ScLcms2ColorTransformImpl* newTrans = new 
ScLcms2ColorTransformImpl(engine, hTransform);
                                newTrans->setTransformInfo(transInfo);
-                               transform = ScColorTransform(newTrans);
+                               transform = 
ScColorTransform(dynamic_cast<ScColorTransformData*>(newTrans));
                                m_transformPool->addTransform(transform, true);
                        }
                }


_______________________________________________
scribus-commit mailing list
[email protected]
http://lists.scribus.net/mailman/listinfo/scribus-commit

Reply via email to