diff options
Diffstat (limited to 'dw/textblock.cc')
-rw-r--r-- | dw/textblock.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc index 045126d9..7675f55f 100644 --- a/dw/textblock.cc +++ b/dw/textblock.cc @@ -1914,14 +1914,13 @@ void Textblock::changeLinkColor (int link, int newColor) styleAttrs = *old_style; styleAttrs.color = core::style::Color::create (layout, newColor); - word->style = core::style::Style::create (layout, &styleAttrs); + word->style = core::style::Style::create (&styleAttrs); old_style->unref(); old_style = word->spaceStyle; styleAttrs = *old_style; styleAttrs.color = core::style::Color::create (layout, newColor); - word->spaceStyle = - core::style::Style::create(layout, &styleAttrs); + word->spaceStyle = core::style::Style::create(&styleAttrs); old_style->unref(); break; } @@ -1932,8 +1931,7 @@ void Textblock::changeLinkColor (int link, int newColor) newColor); styleAttrs.setBorderColor( core::style::Color::create (layout, newColor)); - widget->setStyle( - core::style::Style::create (layout, &styleAttrs)); + widget->setStyle(core::style::Style::create (&styleAttrs)); break; } default: |