aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gui/MachinaGUI.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/MachinaGUI.cpp b/src/gui/MachinaGUI.cpp
index 6763ec0..a11fe5e 100644
--- a/src/gui/MachinaGUI.cpp
+++ b/src/gui/MachinaGUI.cpp
@@ -599,14 +599,14 @@ MachinaGUI::show_labels_toggled()
{
const bool show = _menu_view_labels->get_active();
- for (Canvas::Items::iterator i = _canvas->items().begin();
+ for (Canvas::Items::const_iterator i = _canvas->items().begin();
i != _canvas->items().end(); ++i) {
NodeView* const nv = dynamic_cast<NodeView*>(*i);
if (nv)
nv->show_label(show);
}
- for (Canvas::Connections::iterator c = _canvas->connections().begin();
+ for (Canvas::Connections::const_iterator c = _canvas->connections().begin();
c != _canvas->connections().end(); ++c) {
EdgeView* const ev = dynamic_cast<EdgeView*>(*c);
if (ev)