mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
Fix crash when citeengine is unknown.
This commit is contained in:
parent
8160ed97bf
commit
5ee3396459
@ -4007,6 +4007,12 @@ bool GuiDocument::isBiblatex() const
|
||||
biblioModule->citeEngineCO->itemData(
|
||||
biblioModule->citeEngineCO->currentIndex()).toString();
|
||||
|
||||
// this can happen if the cite engine is unknown, which can happen
|
||||
// if one is using a file that came from someone else, etc. in that
|
||||
// case, we crash if we proceed.
|
||||
if (engine.isEmpty())
|
||||
return false;
|
||||
|
||||
return theCiteEnginesList[fromqstr(engine)]->getCiteFramework() == "biblatex";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user