Skip to content
Permalink
Browse files

Fix passing QgsReferencedRec/Point from python to c++

  • Loading branch information
nyalldawson committed Sep 14, 2017
1 parent cfdc3c7 commit 4eeac1c3f64f019753227c4c0e9901e9ca6cde6f
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/core/qgsapplication.cpp
@@ -41,6 +41,7 @@
#include "qgsunittypes.h"
#include "qgsuserprofile.h"
#include "qgsuserprofilemanager.h"
#include "qgsreferencedgeometry.h"

#include "gps/qgsgpsconnectionregistry.h"
#include "processing/qgsprocessingregistry.h"
@@ -149,6 +150,8 @@ void QgsApplication::init( QString profileFolder )
qRegisterMetaType<QgsUnitTypes::LayoutUnit>( "QgsUnitTypes::LayoutUnit" );
qRegisterMetaType<QgsFeatureIds>( "QgsFeatureIds" );
qRegisterMetaType<QgsMessageLog::MessageLevel>( "QgsMessageLog::MessageLevel" );
qRegisterMetaType<QgsReferencedRectangle>( "QgsReferencedRectangle" );
qRegisterMetaType<QgsReferencedRectangle>( "QgsReferencedPoint" );

QString prefixPath( getenv( "QGIS_PREFIX_PATH" ) ? getenv( "QGIS_PREFIX_PATH" ) : applicationDirPath() );
// QgsDebugMsg( QString( "prefixPath(): %1" ).arg( prefixPath ) );

0 comments on commit 4eeac1c

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