Skip to content

Commit

Permalink
Potential fix for ticket #406 (qgis crashes on copy postgres attributes)
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@6166 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Dec 1, 2006
1 parent bc8a475 commit 4965880
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gui/qgsclipboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ void QgsClipboard::replaceWithCopyOf( std::vector<QgsFeature> features )

// TODO: Set up Paste Transformations to specify the order in which fields are added.

textFields += it->geometry()->wkt();
if (it->geometry())
textFields += it->geometry()->wkt();
else
textFields += "NULL";

#ifdef QGISDEBUG
// std::cout << "QgsClipboard::replaceWithCopyOf: about to traverse fields." << std::endl;
Expand Down

0 comments on commit 4965880

Please sign in to comment.