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/qgis@6166 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Dec 1, 2006
1 parent d5a8f4f commit 5728546
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 5728546

Please sign in to comment.