mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Par alignment in floats must be swapped for all RTL langs, not only Hebrew
Fixes: #11029
This commit is contained in:
parent
5a49430729
commit
3bacc3c6e7
@ -2383,13 +2383,13 @@ int Paragraph::Private::startTeXParParams(BufferParams const & bparams,
|
||||
case LYX_ALIGN_DECIMAL:
|
||||
break;
|
||||
case LYX_ALIGN_LEFT: {
|
||||
if (owner_->getParLanguage(bparams)->babel() != "hebrew")
|
||||
if (!owner_->getParLanguage(bparams)->rightToLeft())
|
||||
corrected_env(os, begin_tag, "flushleft", code, lastpar, column);
|
||||
else
|
||||
corrected_env(os, begin_tag, "flushright", code, lastpar, column);
|
||||
break;
|
||||
} case LYX_ALIGN_RIGHT: {
|
||||
if (owner_->getParLanguage(bparams)->babel() != "hebrew")
|
||||
if (!owner_->getParLanguage(bparams)->rightToLeft())
|
||||
corrected_env(os, begin_tag, "flushright", code, lastpar, column);
|
||||
else
|
||||
corrected_env(os, begin_tag, "flushleft", code, lastpar, column);
|
||||
@ -2441,13 +2441,13 @@ bool Paragraph::Private::endTeXParParams(BufferParams const & bparams,
|
||||
case LYX_ALIGN_DECIMAL:
|
||||
break;
|
||||
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);
|
||||
else
|
||||
output = corrected_env(os, end_tag, "flushright", code, lastpar, col);
|
||||
break;
|
||||
} 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);
|
||||
else
|
||||
output = corrected_env(os, end_tag, "flushleft", code, lastpar, col);
|
||||
|
Loading…
Reference in New Issue
Block a user