]> git.lyx.org Git - lyx.git/blobdiff - src/BranchList.h
Do not let cursor overlap with inserted graphics.
[lyx.git] / src / BranchList.h
index c221dc82273df72f5201f5b929b85e5636d9ab28..7bf435217de502f102a968bd4c1ce8a2ea1c296c 100644 (file)
@@ -16,6 +16,7 @@
 
 #include "support/docstring.h"
 
+#include <cstdlib> // rand()
 #include <list>
 
 
@@ -43,7 +44,7 @@ namespace lyx {
 class Branch {
 public:
        ///
-       Branch();
+       Branch() {}
        ///
        docstring const & branch() const;
        ///
@@ -86,15 +87,15 @@ private:
        ///
        docstring branch_;
        ///
-       bool selected_;
+       bool selected_ = false;
        ///
-       bool filenameSuffix_;
+       bool filenameSuffix_ = false;
        /// light mode background color
-       std::string lmcolor_;
+       std::string lmcolor_ = "background";
        /// dark mode background color
-       std::string dmcolor_;
+       std::string dmcolor_ = "background";
        ///
-       int branch_list_id_;
+       int branch_list_id_ = 0;
 };