From 3bb876375c03f804407536f66dbc66f415c82a99 Mon Sep 17 00:00:00 2001 From: cyreve Date: Sat, 17 Feb 2007 14:23:13 +0000 Subject: [PATCH] bug 1652188: text-anchor:start means left even in rtl --- src/libnrtype/Layout-TNG-Input.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } } -- 2.30.2