mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 02:49:46 +00:00
Fix uninitialized variable
Spotted by Coverity scan.
This commit is contained in:
parent
9f40eaee15
commit
ffca6730d6
@ -1184,7 +1184,7 @@ void GuiWorkArea::Private::paintPreeditText(GuiPainter & pain)
|
|||||||
im_lang_ = lang;
|
im_lang_ = lang;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Chinese IM may want cursor position even when preedit string is empty
|
// Chinese IM may want cursor position even when preedit string is empty
|
||||||
// such a case is handled below
|
// such a case is handled below
|
||||||
if (preedit_string_.empty() && im_->locale().language() != QLocale::Chinese)
|
if (preedit_string_.empty() && im_->locale().language() != QLocale::Chinese)
|
||||||
|
@ -149,7 +149,7 @@ struct GuiWorkArea::Private
|
|||||||
QTransform item_trans_;
|
QTransform item_trans_;
|
||||||
bool item_trans_needs_reset_ = false;
|
bool item_trans_needs_reset_ = false;
|
||||||
/// for debug
|
/// for debug
|
||||||
QLocale::Language im_lang_;
|
QLocale::Language im_lang_ = QLocale::AnyLanguage;
|
||||||
|
|
||||||
/// Ratio between physical pixels and device-independent pixels
|
/// Ratio between physical pixels and device-independent pixels
|
||||||
/// We save the last used value to detect changes of the
|
/// We save the last used value to detect changes of the
|
||||||
|
Loading…
Reference in New Issue
Block a user