Skip to content
Permalink
Browse files

Apply fix for ticket #3236, provided by NathanW

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14736 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Nov 22, 2010
1 parent 950e800 commit de757d23d50224ebd7979aa2659c29ff293695c9
Showing with 23 additions and 0 deletions.
  1. +23 −0 python/core/qgscomposeritem.sip
@@ -5,6 +5,29 @@ class QgsComposerItem: QObject, QGraphicsRectItem
{
%TypeHeaderCode
#include <qgscomposeritem.h>
#include <qgscomposerlabel.h>
#include <qgscomposerlegend.h>
#include <qgscomposermap.h>
#include <qgscomposerpicture.h>
#include <qgscomposerscalebar.h>
#include <qgscomposershape.h>
%End

%ConvertToSubClassCode
if (dynamic_cast<QgsComposerLabel*>(sipCpp) != NULL)
sipClass = sipClass_QgsComposerLabel;
else if (dynamic_cast<QgsComposerLegend*>(sipCpp) != NULL)
sipClass = sipClass_QgsComposerLegend;
else if (dynamic_cast<QgsComposerMap*>(sipCpp) != NULL)
sipClass = sipClass_QgsComposerMap;
else if (dynamic_cast<QgsComposerPicture*>(sipCpp) != NULL)
sipClass = sipClass_QgsComposerPicture;
else if (dynamic_cast<QgsComposerScaleBar*>(sipCpp) != NULL)
sipClass = sipClass_QgsComposerScaleBar;
else if (dynamic_cast<QgsComposerShape*>(sipCpp) != NULL)
sipClass = sipClass_QgsComposerShape;
else
sipClass = 0;
%End

public:

0 comments on commit de757d2

Please sign in to comment.
You can’t perform that action at this time.