Center new spot inside preview area, fixes #5220

When adding/duplicating spot, new spot is now centered according to the
preview area. Moreover ellipse/rectangle size takes into account the
preview area size (but it is saturated at maximum at 250 for a creation,
at duplicated spot size for a duplication). Center circle radius is
unchanged
This commit is contained in:
Pandagrapher
2019-04-24 20:33:35 +02:00
parent 13cad6cf73
commit 680dd1a424
4 changed files with 73 additions and 0 deletions

View File

@@ -193,4 +193,6 @@ public:
int getPipetteRectSize () const;
EditSubscriber* getCurrSubscriber() const;
virtual void getImageSize (int &w, int&h) = 0;
virtual void getPreviewCenterPos(int &x, int &y) = 0;
virtual void getPreviewSize(int &w, int &h) = 0;
};