]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/qt_helpers.cpp
Don't allow newline characters in preference (#5840).
[lyx.git] / src / frontends / qt4 / qt_helpers.cpp
index 7f4c5d8fda1f8e1cccb18cc18553b97d3d58643c..076681c3a693edf35c44e0c2285fbc64f236221c 100644 (file)
@@ -66,6 +66,16 @@ FileName libFileSearch(QString const & dir, QString const & name,
 }
 
 
+FileName imageLibFileSearch(QString & dir, QString const & name,
+                               QString const & ext)
+{
+       string tmp = fromqstr(dir);
+       FileName fn = support::imageLibFileSearch(tmp, fromqstr(name), fromqstr(ext));
+       dir = toqstr(tmp);
+       return fn;
+}
+
+
 namespace frontend {
 
 string widgetsToLength(QLineEdit const * input, LengthCombo const * combo)