From 131dee9db72ad745dafa04555f9996defe7c30f8 Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 21 Sep 2015 14:49:55 +0200 Subject: [PATCH] + get Label directly --- src/App/DocumentObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App/DocumentObject.cpp b/src/App/DocumentObject.cpp index 1c8a26fee3..32c68eaa86 100644 --- a/src/App/DocumentObject.cpp +++ b/src/App/DocumentObject.cpp @@ -194,7 +194,7 @@ void DocumentObject::onBeforeChange(const Property* prop) // Store current name in oldLabel, to be able to easily retrieve old name of document object later // when renaming expressions. if (prop == &Label) - oldLabel = static_cast(&Label)->getStrValue(); + oldLabel = Label.getStrValue(); if (_pDoc) _pDoc->onBeforeChangeProperty(this,prop);