From c9397eaa07bb4c57e807ee9d1ea82ceef054f7f9 Mon Sep 17 00:00:00 2001 From: EvilSpirit Date: Tue, 16 May 2017 22:21:12 +0700 Subject: [PATCH] Make help text for image and TTF request creation reflect reality. Before this commit it would prompt for top left and bottom left corner, neither of which was what in fact was being used. Those two specific points cannot be used because of the way equations are written, so instead change that to top left and bottom right, which is more convenient anyway. --- src/mouse.cpp | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/mouse.cpp b/src/mouse.cpp index dacdffdc..72d0f6b4 100644 --- a/src/mouse.cpp +++ b/src/mouse.cpp @@ -1110,12 +1110,13 @@ void GraphicsWindow::MouseLeftDown(double mx, double my) { r->str = "Abc"; r->font = "BitstreamVeraSans-Roman-builtin.ttf"; - SK.GetEntity(hr.entity(1))->PointForceTo(v); - SK.GetEntity(hr.entity(2))->PointForceTo(v); + for(int i = 1; i <= 4; i++) { + SK.GetEntity(hr.entity(i))->PointForceTo(v); + } pending.operation = Pending::DRAGGING_NEW_POINT; - pending.point = hr.entity(2); - pending.description = _("click to place bottom left of text"); + pending.point = hr.entity(3); + pending.description = _("click to place bottom right of text"); break; } @@ -1131,12 +1132,13 @@ void GraphicsWindow::MouseLeftDown(double mx, double my) { Request *r = SK.GetRequest(hr); r->file = pending.filename; - SK.GetEntity(hr.entity(1))->PointForceTo(v); - SK.GetEntity(hr.entity(2))->PointForceTo(v); + for(int i = 1; i <= 4; i++) { + SK.GetEntity(hr.entity(i))->PointForceTo(v); + } pending.operation = Pending::DRAGGING_NEW_POINT; - pending.point = hr.entity(2); - pending.description = "click to place bottom left of image"; + pending.point = hr.entity(3); + pending.description = "click to place bottom right of image"; break; }