Skip to content

Commit d139119

Browse files
committed
prevent crash when exporting spatial bookmarks (fix #16345)
(cherry picked from commit 58a8478)
1 parent 4ae8065 commit d139119

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/qgsbookmarks.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ void QgsBookmarks::exportToXML()
348348
doc.appendChild( root );
349349

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

353353
QList<QString> headerList;
354354
headerList << "id" << "name" << "project" << "xmin" << "ymin" << "xmax" << "ymax" << "sr_id";

0 commit comments

Comments
 (0)