Properly set signature annotation bounds after insertion

This commit is contained in:
Thorsten Behrens 2020-01-20 01:36:51 +01:00 committed by Albert Astals Cid
parent 9bca008f9d
commit e9577f5f7d

View file

@ -360,6 +360,12 @@ class PickPointEngine2 : public PickPointEngine
Okular::WidgetAnnotation * wa = new Okular::WidgetAnnotation();
ann = wa;
//set boundary
rect.left = qMin(startpoint.x,point.x);
rect.top = qMin(startpoint.y,point.y);
rect.right = qMax(startpoint.x,point.x);
rect.bottom = qMax(startpoint.y,point.y);
wa->setBoundingRectangle(rect);
wa->setCertificateNick( cert );
wa->setPassword( pass );