]> git.lyx.org Git - features.git/commitdiff
Show status of branches even when inset is closed
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 23 Nov 2012 15:30:27 +0000 (16:30 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 23 Nov 2012 15:32:43 +0000 (16:32 +0100)
src/insets/InsetBranch.cpp
status.20x

index 9b06c5ecef226dd85c80b2173d07a35299489b0c..19df7fb4de0f131bcd6ab896d961cec32dd59c3c 100644 (file)
@@ -90,11 +90,12 @@ docstring const InsetBranch::buttonLabel(BufferView const & bv) const
                if (c == Color_none)
                        s = _("Undef: ") + s;
        }
-       s = char_type(isBranchSelected() ? 0x2714 : 0x2716) + s;
+
+       docstring const symb = docstring(1, char_type(isBranchSelected() ? 0x2714 : 0x2716));
        if (decoration() == InsetLayout::CLASSIC)
-               return isOpen(bv) ? s : getNewLabel(s);
+               return symb + (isOpen(bv) ? s : getNewLabel(s));
        else
-               return params_.branch + ": " + getNewLabel(s);
+               return symb + params_.branch + ": " + getNewLabel(s);
 }
 
 
index 8c0d0e981ea373ab502cd28293a4d29b1f0310a9..fca87b0a743ff4f857cd032cb8789f473b869aac 100644 (file)
@@ -40,6 +40,9 @@ What's new
 
 - Categorize paragraph styles of the linguistics module.
 
+- Show a symbol on collapsed branches indicating whether they are
+  active.
+
 
 * DOCUMENTATION AND LOCALIZATION