mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
GuiSymbols: handle the case of an invalid data
The docs do not guarantee that the index must be valid
This commit is contained in:
parent
633d5e2c10
commit
03a0e983bc
@ -218,6 +218,9 @@ public:
|
||||
|
||||
QVariant data(QModelIndex const & index, int role) const
|
||||
{
|
||||
if (!index.isValid())
|
||||
return QVariant();
|
||||
|
||||
static QString const strCharacter = qt_("Character: ");
|
||||
static QString const strCodePoint = qt_("Code Point: ");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user