diff options
author | Sebastian Geerken <devnull@localhost> | 2012-11-27 16:05:54 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2012-11-27 16:05:54 +0100 |
commit | 6526b42cefc35149af20d645f15e8bb76b0db0e2 (patch) | |
tree | cc4b9874540709435da9657501eae1db77038d99 /src/styleengine.cc | |
parent | 1250d68c8767232849145d9e6abe681a562f6f5d (diff) | |
parent | c58af8aa171908de5e0e069754803235f8ea70f8 (diff) |
Merge.
Diffstat (limited to 'src/styleengine.cc')
-rw-r--r-- | src/styleengine.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/styleengine.cc b/src/styleengine.cc index 2c7b1d7a..c394887e 100644 --- a/src/styleengine.cc +++ b/src/styleengine.cc @@ -51,7 +51,7 @@ StyleEngine::StyleEngine (dw::core::Layout *layout) { style_attrs.color = Color::create (layout, 0); style_attrs.backgroundColor = Color::create (layout, 0xffffff); - n->style = Style::create (layout, &style_attrs); + n->style = Style::create (&style_attrs); } StyleEngine::~StyleEngine () { @@ -715,7 +715,7 @@ Style * StyleEngine::backgroundStyle () { assert (attrs.backgroundColor); stack->getRef (stack->size () - 1)->backgroundStyle = - Style::create (layout, &attrs); + Style::create (&attrs); } return stack->getRef (stack->size () - 1)->backgroundStyle; } @@ -757,7 +757,7 @@ Style * StyleEngine::style0 (int i) { postprocessAttrs (&attrs); - stack->getRef (i)->style = Style::create (layout, &attrs); + stack->getRef (i)->style = Style::create (&attrs); return stack->getRef (i)->style; } @@ -771,7 +771,7 @@ Style * StyleEngine::wordStyle0 () { attrs.valign = style ()->valign; - stack->getRef(stack->size() - 1)->wordStyle = Style::create(layout, &attrs); + stack->getRef(stack->size() - 1)->wordStyle = Style::create(&attrs); return stack->getRef (stack->size () - 1)->wordStyle; } |