ports/editors/texmaker/patches/patch-texmaker_cpp

22 lines
775 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: texmaker.cpp
--- texmaker.cpp.orig
+++ texmaker.cpp
@@ -4670,7 +4670,7 @@ QString dicDir=QCoreApplication::applicationDirPath()
#ifdef DEBIAN_SPELLDIR
QString dicDir=PREFIX"/share/myspell/dicts/";
#else
-QString dicDir=PREFIX"/share/texmaker/";
+QString dicDir=PREFIX"/share/hunspell/";
#endif
#endif
@@ -4683,7 +4683,7 @@ QString dicDir=QCoreApplication::applicationDirPath()
#endif
QString defaultDic=dicDir+QString(QLocale::system().name())+".dic";
QFileInfo fi(defaultDic);
-if (!fi.exists() || !fi.isReadable()) defaultDic=dicDir+"en_GB.dic";
+if (!fi.exists() || !fi.isReadable()) defaultDic=dicDir+"default.dic";
spell_dic=config->value("Spell/Dic",defaultDic).toString();
QFileInfo fispell(spell_dic);
pdfCheckerLang=fispell.fileName().left(2);