Skip to content

Commit 58a8478

Browse files
committed
prevent crash when exporting spatial bookmarks (fix #16345)
1 parent aa021be commit 58a8478

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/qgsbookmarks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ void QgsBookmarks::exportToXml()
345345
doc.appendChild( root );
346346

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

350350
QList<QString> headerList;
351351
headerList

0 commit comments

Comments
 (0)