commit d42a300dfe26f3c4bab7e88423a1a14a4a56f542
Author: Juergen Spitzmueller <[email protected]>
Date:   Mon Nov 18 10:23:31 2024 +0100

    Quote file name to table style in LFUN_TABULAR_STYLE_INSERT
    
    This might fix the woes with table styles on windows, where the path
    to the system directory has blanks IIRC (C:\Program Files\...)
---
 src/Text.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/Text.cpp b/src/Text.cpp
index c26a5da35e..b4d5232c7d 100644
--- a/src/Text.cpp
+++ b/src/Text.cpp
@@ -5620,10 +5620,11 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
                FileName const tabstyle = libFileSearch("tabletemplates",
                                                        style + suffix + 
".lyx", "lyx");
                if (tabstyle.empty())
-                           break;
+                       break;
                UndoGroupHelper ugh(cur.buffer());
                cur.recordUndo();
-               FuncRequest cmd2(LFUN_FILE_INSERT, tabstyle.absFileName() + " 
ignorelang");
+               FuncRequest cmd2(LFUN_FILE_INSERT,
+                                quoteName(tabstyle.absFileName()) + " 
ignorelang");
                lyx::dispatch(cmd2);
                // go into table
                cur.backwardPos();
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to