From: cyreve Date: Sat, 17 Feb 2007 14:23:13 +0000 (+0000) Subject: bug 1652188: text-anchor:start means left even in rtl X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3bb876375c03f804407536f66dbc66f415c82a99;p=inkscape.git bug 1652188: text-anchor:start means left even in rtl --- diff --git a/src/libnrtype/Layout-TNG-Input.cpp b/src/libnrtype/Layout-TNG-Input.cpp index 499f67a7b..30a1050af 100755 --- a/src/libnrtype/Layout-TNG-Input.cpp +++ b/src/libnrtype/Layout-TNG-Input.cpp @@ -181,9 +181,9 @@ static Layout::Alignment text_anchor_to_alignment(unsigned anchor, Layout::Direc { switch (anchor) { default: - case SP_CSS_TEXT_ANCHOR_START: return para_direction == Layout::LEFT_TO_RIGHT ? Layout::LEFT : Layout::RIGHT; + case SP_CSS_TEXT_ANCHOR_START: return Layout::LEFT; case SP_CSS_TEXT_ANCHOR_MIDDLE: return Layout::CENTER; - case SP_CSS_TEXT_ANCHOR_END: return para_direction == Layout::LEFT_TO_RIGHT ? Layout::RIGHT : Layout::LEFT; + case SP_CSS_TEXT_ANCHOR_END: return Layout::RIGHT; } }