Skip to content
Permalink
Browse files

fix exporting bookmarks

  • Loading branch information
jef-n committed Mar 2, 2017
1 parent 85a0db2 commit 90fae2614d0a9ee6de186e36568ffd45bd46bf20
Showing with 3 additions and 5 deletions.
  1. +3 −5 src/app/qgsbookmarks.cpp
@@ -337,7 +337,7 @@ void QgsBookmarks::exportToXML()
return;
}

// ensure the user never ommited the extension from the file name
// ensure the user never omitted the extension from the file name
if ( !fileName.endsWith( ".xml", Qt::CaseInsensitive ) )
{
fileName += ".xml";
@@ -351,8 +351,7 @@ void QgsBookmarks::exportToXML()
int colCount = mModel->columnCount();

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

for ( int i = 0; i < rowCount; ++i )
{
@@ -406,8 +405,7 @@ int QgsProjectBookmarksTableModel::rowCount( const QModelIndex& parent ) const
int QgsProjectBookmarksTableModel::columnCount( const QModelIndex& parent ) const
{
Q_UNUSED( parent );

return 8;
return 7;
}

QVariant QgsProjectBookmarksTableModel::data( const QModelIndex& index, int role ) const

0 comments on commit 90fae26

Please sign in to comment.
You can’t perform that action at this time.