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 potential enablement loop in line height and baseline shift widgets.

Wolthera van Hövell tot Westerflier6d95c6a230a6
diff --git a/plugins/dockers/textproperties/qml/BaselineShift.qml b/plugins/dockers/textproperties/qml/BaselineShift.qml
index 02bda31814..748f8a783f 100644
--- a/plugins/dockers/textproperties/qml/BaselineShift.qml
+++ b/plugins/dockers/textproperties/qml/BaselineShift.qml
@@ -119,7 +119,7 @@ TextPropertyBase {
enabled: baselineShiftMode === KoSvgText.ShiftLengthPercentage;
from: -999 * multiplier;
to: 999 * multiplier;
- onValueChanged: baselineShiftUnitCmb.userValue = value;
+ onValueChanged: if (enabled) baselineShiftUnitCmb.userValue = value;
palette: baselinePalette.palette;
}
}
diff --git a/plugins/dockers/textproperties/qml/LineHeight.qml b/plugins/dockers/textproperties/qml/LineHeight.qml
index 8037a04698..89894ec755 100644
--- a/plugins/dockers/textproperties/qml/LineHeight.qml
+++ b/plugins/dockers/textproperties/qml/LineHeight.qml
@@ -125,7 +125,7 @@ TextPropertyBase {
from: 0;
to: 999 * multiplier;
- onValueChanged: converter.userValue = value;
+ onValueChanged:if (enabled) converter.userValue = value;
palette: lineHeightPalette.palette;
}
}