Commit 10fda4fe authored by Julien Osman's avatar Julien Osman
Browse files

BUG: Use an internal default ImageMetadata in Ice/ViewSettings

parent 99d23339
Pipeline #8834 canceled with stage
in 17 minutes and 40 seconds
......@@ -157,6 +157,7 @@ private:
SizeType m_ViewportSize;
std::string m_Wkt;
const ImageMetadataType* m_ImageMetadata;
const ImageMetadataType m_DefaultImageMetadata;
PointType m_RotationCenter;
double m_RotationAngle;
bool m_UseProjection : 1;
......
......@@ -28,13 +28,14 @@ ViewSettings::ViewSettings() :
m_Wkt( "" ),
m_RotationAngle( 0.0 ),
m_UseProjection( true ),
m_GeometryChanged( false )
m_GeometryChanged( false ),
m_DefaultImageMetadata()
{
m_Origin.Fill( 0 );
m_Spacing.Fill( 1 );
m_ViewportSize.Fill( 0 );
m_RotationCenter.Fill( 0 );
m_ImageMetadata = nullptr;
m_ImageMetadata = &m_DefaultImageMetadata;
}
ViewSettings::~ViewSettings()
......@@ -50,7 +51,7 @@ ViewSettings
m_Wkt = "";
m_ImageMetadata = nullptr;
m_ImageMetadata = &m_DefaultImageMetadata;;
m_UseProjection = true;
m_GeometryChanged = false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment