Abdelrazak Younes wrote:
> > Abdel, are you on a patch, or shall I?
>
> Go ahead.

Attached. John, please test.

Jürgen
Index: src/frontends/controllers/frontend_helpers.cpp
===================================================================
--- src/frontends/controllers/frontend_helpers.cpp	(Revision 18987)
+++ src/frontends/controllers/frontend_helpers.cpp	(Arbeitskopie)
@@ -191,7 +191,7 @@
 	if (idx != docstring::npos)
 		return ltrim(fname.substr(0, idx));
 	idx = fname.rfind('.');
-	if (idx != docstring::npos)
+	if (idx != docstring::npos && idx < fname.size() - 1)
 		fname = ltrim(fname.substr(idx + 1));
 	// test if we have a LaTeX Space in front
 	if (fname[0] == '\\')

Reply via email to