Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
a93d2093
Commit
a93d2093
authored
Oct 06, 2022
by
Jean-Baptiste Mardelle
Browse files
Attempt to solve subtitle Right to Left languages.
Related to
#1519
parent
8e884b1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dialogs/subtitleedit.cpp
View file @
a93d2093
...
...
@@ -317,6 +317,9 @@ void SubtitleEdit::updateSubtitle()
if
(
m_activeSub
>
-
1
&&
m_model
)
{
QString
txt
=
subText
->
toPlainText
().
trimmed
();
txt
.
replace
(
QLatin1String
(
"
\n\n
"
),
QStringLiteral
(
"
\n
"
));
if
(
subText
->
document
()
->
defaultTextOption
().
textDirection
()
==
Qt
::
RightToLeft
&&
!
txt
.
startsWith
(
QChar
(
0x200E
)))
{
txt
.
prepend
(
QChar
(
0x200E
));
}
m_model
->
setText
(
m_activeSub
,
txt
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment