Fix build issue.

This commit is contained in:
Jeff Young 2024-05-21 17:14:40 +01:00
parent ee81d1d880
commit a5436c92d1
2 changed files with 7 additions and 6 deletions

View File

@ -1513,12 +1513,12 @@ static struct DIMENSION_DESC
&PCB_DIMENSION_BASE::GetKeepTextAligned ),
groupText );
// propMgr.AddProperty( new PROPERTY<PCB_DIMENSION_BASE, double>( _HKI( "Orientation" ),
// &PCB_DIMENSION_BASE::SetTextAngleDegreesProp,
// &PCB_DIMENSION_BASE::GetTextAngleDegrees,
// PROPERTY_DISPLAY::PT_DEGREE ),
// groupText )
// .SetWriteableFunc( isTextOrientationWriteable );
propMgr.AddProperty( new PROPERTY<PCB_DIMENSION_BASE, double>( _HKI( "Orientation" ),
&PCB_DIMENSION_BASE::SetTextAngleDegreesProp,
&PCB_DIMENSION_BASE::GetTextAngleDegreesProp,
PROPERTY_DISPLAY::PT_DEGREE ),
groupText )
.SetWriteableFunc( isTextOrientationWriteable );
}
} _DIMENSION_DESC;

View File

@ -225,6 +225,7 @@ public:
bool GetKeepTextAligned() const { return m_keepTextAligned; }
void SetKeepTextAligned( bool aKeepAligned ) { m_keepTextAligned = aKeepAligned; }
double GetTextAngleDegreesProp() const { return GetTextAngleDegrees(); }
void SetTextAngleDegreesProp( double aDegrees );
void SetKeepTextAlignedProp( bool aKeepAligned );