Skip to content

Commit

Permalink
fix exporting bookmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Mar 2, 2017
1 parent 85a0db2 commit 90fae26
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/app/qgsbookmarks.cpp
Expand Up @@ -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";
Expand All @@ -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 )
{
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 90fae26

Please sign in to comment.