mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-29 05:01:49 +00:00
Par alignment in floats must be swapped for all RTL langs, not only Hebrew
Fixes: #11029
(cherry picked from commit 3bacc3c6e7
)
This commit is contained in:
parent
3fd0cc27d4
commit
995aed2e6e
@ -2289,13 +2289,13 @@ int Paragraph::Private::startTeXParParams(BufferParams const & bparams,
|
|||||||
case LYX_ALIGN_DECIMAL:
|
case LYX_ALIGN_DECIMAL:
|
||||||
break;
|
break;
|
||||||
case LYX_ALIGN_LEFT: {
|
case LYX_ALIGN_LEFT: {
|
||||||
if (owner_->getParLanguage(bparams)->babel() != "hebrew")
|
if (!owner_->getParLanguage(bparams)->rightToLeft())
|
||||||
corrected_env(os, begin_tag, "flushleft", code, lastpar, column);
|
corrected_env(os, begin_tag, "flushleft", code, lastpar, column);
|
||||||
else
|
else
|
||||||
corrected_env(os, begin_tag, "flushright", code, lastpar, column);
|
corrected_env(os, begin_tag, "flushright", code, lastpar, column);
|
||||||
break;
|
break;
|
||||||
} case LYX_ALIGN_RIGHT: {
|
} case LYX_ALIGN_RIGHT: {
|
||||||
if (owner_->getParLanguage(bparams)->babel() != "hebrew")
|
if (!owner_->getParLanguage(bparams)->rightToLeft())
|
||||||
corrected_env(os, begin_tag, "flushright", code, lastpar, column);
|
corrected_env(os, begin_tag, "flushright", code, lastpar, column);
|
||||||
else
|
else
|
||||||
corrected_env(os, begin_tag, "flushleft", code, lastpar, column);
|
corrected_env(os, begin_tag, "flushleft", code, lastpar, column);
|
||||||
@ -2347,13 +2347,13 @@ bool Paragraph::Private::endTeXParParams(BufferParams const & bparams,
|
|||||||
case LYX_ALIGN_DECIMAL:
|
case LYX_ALIGN_DECIMAL:
|
||||||
break;
|
break;
|
||||||
case LYX_ALIGN_LEFT: {
|
case LYX_ALIGN_LEFT: {
|
||||||
if (owner_->getParLanguage(bparams)->babel() != "hebrew")
|
if (!owner_->getParLanguage(bparams)->rightToLeft())
|
||||||
output = corrected_env(os, end_tag, "flushleft", code, lastpar, col);
|
output = corrected_env(os, end_tag, "flushleft", code, lastpar, col);
|
||||||
else
|
else
|
||||||
output = corrected_env(os, end_tag, "flushright", code, lastpar, col);
|
output = corrected_env(os, end_tag, "flushright", code, lastpar, col);
|
||||||
break;
|
break;
|
||||||
} case LYX_ALIGN_RIGHT: {
|
} case LYX_ALIGN_RIGHT: {
|
||||||
if (owner_->getParLanguage(bparams)->babel() != "hebrew")
|
if (!owner_->getParLanguage(bparams)->rightToLeft())
|
||||||
output = corrected_env(os, end_tag, "flushright", code, lastpar, col);
|
output = corrected_env(os, end_tag, "flushright", code, lastpar, col);
|
||||||
else
|
else
|
||||||
output = corrected_env(os, end_tag, "flushleft", code, lastpar, col);
|
output = corrected_env(os, end_tag, "flushleft", code, lastpar, col);
|
||||||
|
@ -69,6 +69,8 @@ What's new
|
|||||||
- Fix problems with extra table borders added on table modification
|
- Fix problems with extra table borders added on table modification
|
||||||
(bug 10010).
|
(bug 10010).
|
||||||
|
|
||||||
|
- Fix text direction in figure wrap floats with RTL (bug 11029).
|
||||||
|
|
||||||
|
|
||||||
* USER INTERFACE
|
* USER INTERFACE
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user