Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix compiling
  • Loading branch information
m-kuhn committed Jun 1, 2015
1 parent 55db2ab commit 239dc71
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 9 additions & 0 deletions src/core/geometry/qgsabstractgeometryv2.cpp
Expand Up @@ -63,6 +63,15 @@ bool QgsAbstractGeometryV2::isMeasure() const
return ( mWkbType >= 2001 && mWkbType <= 3012 );
}

void QgsAbstractGeometryV2::clip( const QgsRectangle& rect )
{
// TODO
// - Implementation
// - API doc in header

// Don't insert Q_UNUSED, so we have a warning that reminds us of this TODO
}

void QgsAbstractGeometryV2::setZMTypeFromSubGeometry( const QgsAbstractGeometryV2* subgeom, QgsWKBTypes::Type baseGeomType )
{
if ( !subgeom )
Expand Down
4 changes: 1 addition & 3 deletions src/core/geometry/qgsabstractgeometryv2.h
Expand Up @@ -223,9 +223,7 @@ class CORE_EXPORT QgsAbstractGeometryV2
*/
virtual void transform( const QTransform& t ) = 0;

#if 0
virtual void clip( const QgsRectangle& rect ) { Q_UNUSED( rect ); } //todo
#endif
virtual void clip( const QgsRectangle& rect ); //todo

/** Draws the geometry using the specified QPainter.
* @param p destination QPainter
Expand Down

0 comments on commit 239dc71

Please sign in to comment.