Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Fix visibility text decoration and hanging punctuation.

Wolthera van Hövell tot Westerflier944a56986cc4
diff --git a/plugins/dockers/textproperties/qml/HangingPunctuation.qml b/plugins/dockers/textproperties/qml/HangingPunctuation.qml
index 160a3617fb..d31cb75315 100644
--- a/plugins/dockers/textproperties/qml/HangingPunctuation.qml
+++ b/plugins/dockers/textproperties/qml/HangingPunctuation.qml
@@ -20,7 +20,7 @@ TextPropertyBase {
hangStart = properties.hangingPunctuationFirst;
hangEnd = properties.hangingPunctuationLast;
hangComma = properties.hangingPunctuationComma;
- visible = properties.hangingPunctuationState !== KoSvgTextPropertiesModel.PropertySet;
+ visible = properties.hangingPunctuationState !== KoSvgTextPropertiesModel.PropertyUnset;
blockSignals = false;
}
diff --git a/plugins/dockers/textproperties/qml/TextDecoration.qml b/plugins/dockers/textproperties/qml/TextDecoration.qml
index c073598ed4..4cee284ea4 100644
--- a/plugins/dockers/textproperties/qml/TextDecoration.qml
+++ b/plugins/dockers/textproperties/qml/TextDecoration.qml
@@ -11,7 +11,6 @@ import org.krita.flake.text 1.0
TextPropertyBase {
propertyName: i18nc("@title:group", "Text Decoration");
propertyType: TextPropertyBase.Character;
- visible: properties.textDecorationLineState !== KoSvgTextPropertiesModel.PropertyUnset
property alias underline: underlineCbx.checked;
property alias overline: overlineCbx.checked;
@@ -26,6 +25,8 @@ TextPropertyBase {
linethrough = properties.textDecorationLineThrough;
lineStyle = properties.textDecorationStyle;
lineColor = properties.textDecorationColor;
+
+ visible = properties.textDecorationLineState !== KoSvgTextPropertiesModel.PropertyUnset
blockSignals = false;
}