mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-12 20:51:17 +00:00
Properly set signature annotation bounds after insertion
This commit is contained in:
parent
9bca008f9d
commit
e9577f5f7d
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue