diff --git a/python/gui/qgsmapcanvasmap.sip b/python/gui/qgsmapcanvasmap.sip index a3e4faf321f..f885b137154 100644 --- a/python/gui/qgsmapcanvasmap.sip +++ b/python/gui/qgsmapcanvasmap.sip @@ -1,4 +1,11 @@ +%ModuleHeaderCode +// fix to allow compilation with sip 4.7 that for some reason +// doesn't add this include to the file where the code from +// ConvertToSubClassCode goes. +#include +%End + class QgsMapCanvasMap : QGraphicsRectItem { %TypeHeaderCode diff --git a/python/gui/qgsmaptool.sip b/python/gui/qgsmaptool.sip index 512ce81cebe..a6d2b6beb71 100644 --- a/python/gui/qgsmaptool.sip +++ b/python/gui/qgsmaptool.sip @@ -1,4 +1,13 @@ +%ModuleHeaderCode +// fix to allow compilation with sip 4.7 that for some reason +// doesn't add these includes to the file where the code from +// ConvertToSubClassCode goes. +#include +#include +#include +%End + class QgsMapTool : QObject { %TypeHeaderCode