aboutsummaryrefslogtreecommitdiff
path: root/src/LayerMenu.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/LayerMenu.hh')
-rw-r--r--src/LayerMenu.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/LayerMenu.hh b/src/LayerMenu.hh
index 724e7bc..3f8330f 100644
--- a/src/LayerMenu.hh
+++ b/src/LayerMenu.hh
@@ -41,11 +41,11 @@ public:
41/// this class holds the layermenu items 41/// this class holds the layermenu items
42class LayerMenuItem : public FbTk::MenuItem { 42class LayerMenuItem : public FbTk::MenuItem {
43public: 43public:
44 LayerMenuItem(const char *label, LayerObject *object, int layernum, 44 LayerMenuItem(const FbTk::FbString &label, LayerObject *object, int layernum,
45 FbTk::RefCount<FbTk::Command> &cmd): 45 FbTk::RefCount<FbTk::Command> &cmd):
46 FbTk::MenuItem(label, cmd), m_object(object), m_layernum(layernum) {} 46 FbTk::MenuItem(label, cmd), m_object(object), m_layernum(layernum) {}
47 47
48 LayerMenuItem(const char *label, LayerObject *object, int layernum): 48 LayerMenuItem(const FbTk::FbString &label, LayerObject *object, int layernum):
49 FbTk::MenuItem(label), m_object(object), m_layernum(layernum) {} 49 FbTk::MenuItem(label), m_object(object), m_layernum(layernum) {}
50 50
51 bool isEnabled() const { return m_object->layerNumber() != m_layernum; } 51 bool isEnabled() const { return m_object->layerNumber() != m_layernum; }