Skip to content

Commit

Permalink
prevent crash when exporting spatial bookmarks (fix #16345)
Browse files Browse the repository at this point in the history
(cherry picked from commit 58a8478)
  • Loading branch information
alexbruy committed May 10, 2017
1 parent 4ae8065 commit d139119
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsbookmarks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ void QgsBookmarks::exportToXML()
doc.appendChild( root );

int rowCount = mModel->rowCount();
int colCount = mModel->columnCount();
int colCount = mModel->columnCount() - 1; // exclude virtual "In project" column

QList<QString> headerList;
headerList << "id" << "name" << "project" << "xmin" << "ymin" << "xmax" << "ymax" << "sr_id";
Expand Down

0 comments on commit d139119

Please sign in to comment.