Skip to content
Permalink
Browse files

Fix for ticket #5

git-svn-id: http://svn.osgeo.org/qgis/trunk@5279 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m
g_j_m committed Apr 14, 2006
1 parent 0d38805 commit f8228bc965c5d85fc19b5d3e38a495c03c7d9709
Showing with 13 additions and 1 deletion.
  1. +2 −1 src/core/qgis.h
  2. +11 −0 src/gui/qgsvectorlayer.cpp
@@ -63,7 +63,8 @@ class QGis
{
Point,
Line,
Polygon
Polygon,
Unknown
};
static const char *qgisVectorGeometryType[];

@@ -1249,6 +1249,17 @@ QGis::VectorType QgsVectorLayer::vectorType() const
#endif

}

// We shouldn't get here, and if we have, other things are likely to
// go wrong. Code that uses the vectorType() return value should be
// rewritten to cope with a value of QGis::Unknown. To make this
// need known, the following message is printed every time we get
// here.
std::cerr << "WARNING: This code (file " << __FILE__ << ", line "
<< __LINE__ << ") should never be reached. "
<< "Problems may occur...\n";

return QGis::Unknown;
}

QgsVectorLayerProperties *QgsVectorLayer::propertiesDialog()

0 comments on commit f8228bc

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