[TD]fix Section scale for DPGI base views

This commit is contained in:
wandererfan
2024-01-17 20:11:59 -05:00
committed by WandererFan
parent 893f0fed5b
commit cf3189fef7
4 changed files with 24 additions and 26 deletions

View File

@@ -329,6 +329,16 @@ double DrawProjGroupItem::getScale(void) const
return 1.0;
}
int DrawProjGroupItem::getScaleType() const
{
auto pgroup = getPGroup();
if (pgroup) {
return pgroup->getScaleType();
}
return ScaleType.getValue();
}
void DrawProjGroupItem::unsetupObject()
{
if (!getPGroup()) {

View File

@@ -86,6 +86,7 @@ public:
const bool flip=true) const override;
double getScale() const override;
int getScaleType() const override;
void autoPosition();
bool isAnchor() const;

View File

@@ -100,6 +100,7 @@ public:
void showProgressMessage(std::string featureName, std::string text);
virtual double getScale(void) const;
virtual int getScaleType() const { return ScaleType.getValue(); };
void checkScale(void);
virtual void handleXYLock(void);