Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/fileformats/ocd_file_export.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,7 @@ QString stringForViewPar(const MapView& view, const MapCoord& area_offset, quint
{
const auto center = view.center() - area_offset;
const auto hatched = view.getMap()->isAreaHatchingEnabled() ? '1' : '0';
const auto all_templates_hidden = view.areAllTemplatesHidden() ? '1' : '0';
out << qSetRealNumberPrecision(6)
<< "\tx" << center.x()
<< "\ty" << -center.y()
Expand All @@ -560,7 +561,7 @@ QString stringForViewPar(const MapView& view, const MapCoord& area_offset, quint
<< "\tb50"
<< "\tc50"
<< "\th" << hatched
<< "\td0";
<< "\td" << all_templates_hidden;
}
if (version > 10)
{
Expand Down
4 changes: 4 additions & 0 deletions src/fileformats/ocd_file_import.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1037,6 +1037,10 @@ void OcdFileImport::importView(const QString& param_string)
case 'k':
map->setBaselineViewEnabled(param_value.toInt() != 0);
break;
case 'd':
if (view)
view->setAllTemplatesHidden(param_value.toInt() != 0);
break;
default:
; // nothing
}
Expand Down