diff --git a/src/fileformats/ocd_file_export.cpp b/src/fileformats/ocd_file_export.cpp index 66e005ad2..60584687d 100644 --- a/src/fileformats/ocd_file_export.cpp +++ b/src/fileformats/ocd_file_export.cpp @@ -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() @@ -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) { diff --git a/src/fileformats/ocd_file_import.cpp b/src/fileformats/ocd_file_import.cpp index e231c6d3d..683328905 100644 --- a/src/fileformats/ocd_file_import.cpp +++ b/src/fileformats/ocd_file_import.cpp @@ -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 }