commit 7f33e3e361fefb8e3ae21114d19c4956b34b5f7c
Author: Juergen Spitzmueller <[email protected]>
Date:   Tue Apr 29 17:39:59 2025 +0200

    Comments
---
 src/insets/InsetRef.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/insets/InsetRef.cpp b/src/insets/InsetRef.cpp
index 841376b087..e50b4ea786 100644
--- a/src/insets/InsetRef.cpp
+++ b/src/insets/InsetRef.cpp
@@ -1013,11 +1013,12 @@ vector<FileName> InsetRef::externalFilenames(bool const 
warn) const
                // are excluded from this.
                return res;
 
-       // check whether the included file exist
        vector<string> incFileNames = 
getVectorFromString(ltrim(to_utf8(params()["filenames"])));
        if (incFileNames.empty())
+               // nothing to do
                return res;
 
+       // check whether the included file exist
        ListOfBuffers const children = 
buffer().masterBuffer()->getDescendants();
        for (auto const & ifn : incFileNames) {
                string label;
@@ -1053,6 +1054,7 @@ FileName InsetRef::getExternalFileName(docstring const & 
inlabel) const
 {
        vector<string> incFileNames = 
getVectorFromString(ltrim(to_utf8(params()["filenames"])));
        if (incFileNames.empty())
+               // nothing to do
                return FileName();
 
        ListOfBuffers const children = 
buffer().masterBuffer()->getDescendants();
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to