summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-10-05 17:30:47 +0000
committerjabiertxof <jabier.arraiza@marker.es>2015-10-05 17:30:47 +0000
commit88f15a973fc593be36a423864526c7e064bf3dd3 (patch)
tree51b318db35f03b9ca86115f59ec1c101e5dd73ff /src/ui
parentAdd snap and CTRL constrain (diff)
downloadinkscape-88f15a973fc593be36a423864526c7e064bf3dd3.tar.gz
inkscape-88f15a973fc593be36a423864526c7e064bf3dd3.zip
Add redraw to meassure when use toolbar
(bzr r14393.1.6)
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/tools/measure-tool.cpp6
-rw-r--r--src/ui/tools/measure-tool.h1
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ui/tools/measure-tool.cpp b/src/ui/tools/measure-tool.cpp
index 5521dd6e8..c275a6d79 100644
--- a/src/ui/tools/measure-tool.cpp
+++ b/src/ui/tools/measure-tool.cpp
@@ -256,7 +256,7 @@ MeasureTool::MeasureTool()
this->knot_start->show();
this->knot_end->setPosition(end_p, SP_KNOT_STATE_NORMAL);
this->knot_end->show();
- this->showCanvasItems(this->knot_start->position(), this->knot_end->position());
+ this->showCanvasItems();
}
this->_knot_start_moved_connection = this->knot_start->moved_signal.connect(sigc::mem_fun(*this, &MeasureTool::knotMovedHandler));
this->_knot_start_ungrabbed_connection = this->knot_start->ungrabbed_signal.connect(sigc::mem_fun(*this, &MeasureTool::knotUngrabbedHandler));
@@ -472,6 +472,10 @@ bool MeasureTool::root_handler(GdkEvent* event) {
return ret;
}
+void MeasureTool::showCanvasItems(){
+ showCanvasItems(start_p, end_p);
+}
+
void MeasureTool::showCanvasItems(Geom::Point start_point, Geom::Point end_point){
SPDesktop *desktop = SP_ACTIVE_DESKTOP;
start_p = start_point;
diff --git a/src/ui/tools/measure-tool.h b/src/ui/tools/measure-tool.h
index 8a1eb2203..412de8b72 100644
--- a/src/ui/tools/measure-tool.h
+++ b/src/ui/tools/measure-tool.h
@@ -35,6 +35,7 @@ public:
virtual void finish();
virtual bool root_handler(GdkEvent* event);
+ virtual void showCanvasItems();
virtual void showCanvasItems(Geom::Point start_point, Geom::Point end_point);
virtual const std::string& getPrefsPath();
void knotMovedHandler(SPKnot */*knot*/, Geom::Point const /*&ppointer*/, guint /*state*/);