summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/text-edit.cpp
diff options
context:
space:
mode:
authorJabiertxof <jabier.arraiza@marker.es>2019-07-26 10:44:30 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2019-08-02 21:26:28 +0000
commitbc1d69c014709431b9264f336abce294b34ebc10 (patch)
treea0cb923604c7b63486380eed519b23ccbd073f6a /src/ui/dialog/text-edit.cpp
parentRemoving absolute units (diff)
downloadinkscape-bc1d69c014709431b9264f336abce294b34ebc10.tar.gz
inkscape-bc1d69c014709431b9264f336abce294b34ebc10.zip
Working state
Diffstat (limited to 'src/ui/dialog/text-edit.cpp')
-rw-r--r--src/ui/dialog/text-edit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/dialog/text-edit.cpp b/src/ui/dialog/text-edit.cpp
index 2b8e44eff..1dcc837e5 100644
--- a/src/ui/dialog/text-edit.cpp
+++ b/src/ui/dialog/text-edit.cpp
@@ -423,6 +423,7 @@ void TextEdit::onApply()
unsigned items = 0;
auto item_list = desktop->getSelection()->items();
SPCSSAttr *css = fillTextStyle ();
+ Inkscape::Preferences *prefs = Inkscape::Preferences::get();
for(auto i=item_list.begin();i!=item_list.end();++i){
// apply style to the reprs of all text objects in the selection
if (SP_IS_TEXT (*i) || (SP_IS_FLOWTEXT (*i)) ) {
@@ -431,13 +432,12 @@ void TextEdit::onApply()
}
if (items == 1) {
double factor = font_selector.get_fontsize()/selected_fontsize;
- //Todo need a signal to connect witn toolbar and scale line height
+ prefs->setDouble("/options/font/scaleLineHeightFromFontSIze", factor);
}
sp_desktop_set_style(desktop, css, true);
if (items == 0) {
// no text objects; apply style to prefs for new objects
- Inkscape::Preferences *prefs = Inkscape::Preferences::get();
prefs->mergeStyle("/tools/text/style", css);
setasdefault_button.set_sensitive ( false );