From be9439742ea5d6924d290fd56849b29cd264b331 Mon Sep 17 00:00:00 2001 From: kamalpreetgrewal Date: Tue, 16 Aug 2016 21:01:49 +0530 Subject: Solve issue with addition of missing CSS properties (bzr r14949.1.67) --- src/ui/dialog/styledialog.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/ui/dialog/styledialog.cpp b/src/ui/dialog/styledialog.cpp index e43934c57..bf3562ad3 100644 --- a/src/ui/dialog/styledialog.cpp +++ b/src/ui/dialog/styledialog.cpp @@ -827,12 +827,14 @@ void StyleDialog::_handleEdited(const Glib::ustring& path, const Glib::ustring& * property, else replacements in value are done in the 'else' block. */ if (_cssPane->_newProperty) { - value.append((new_text + ";").c_str()); - _cssPane->_propCol->add_attribute(_cssPane->_textRenderer - ->property_text(), - _cssPane->_cssColumns - ._propertyLabel); - _cssPane->_newProperty = false; + if (!new_text.empty()) { + value.append((new_text + ";").c_str()); + _cssPane->_propCol->add_attribute(_cssPane->_textRenderer + ->property_text(), + _cssPane->_cssColumns + ._propertyLabel); + _cssPane->_newProperty = false; + } } else { std::stringstream ss(value); -- cgit v1.2.3