]> git.lyx.org Git - features.git/commitdiff
Herbert's fix to bug #222.
authorAngus Leeming <leeming@lyx.org>
Wed, 30 Jan 2002 19:14:09 +0000 (19:14 +0000)
committerAngus Leeming <leeming@lyx.org>
Wed, 30 Jan 2002 19:14:09 +0000 (19:14 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3460 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/controllers/ChangeLog
src/frontends/controllers/ControlGraphics.C

index de95441ba3f8780bae7b08003f235d7ea94b0cf4..844af780e5006ffce744593b3574fc12a0dada40 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-29  Herbert Voss  <voss@lyx.org>
+
+       * ControlGraphic.[C]: added a button for document path
+       when browsing -> bug 222
+
 2002-01-27  Herbert Voss  <voss@lyx.org>
 
        * ControlGraphic.[Ch]: added support for Bounding Box, other
index e7964cc3a1f7f91d045ed06fbe5ed321aad51b35..a6901546eec66c6379009ca594153d55530e84a0 100644 (file)
@@ -27,6 +27,7 @@
 #include "Dialogs.h"
 #include "LyXView.h"
 #include "gettext.h"
+#include "lyxrc.h"
 
 #include "insets/insetgraphics.h"
 #include "insets/insetgraphicsParams.h" // need operator!=()
@@ -94,9 +95,9 @@ string const ControlGraphics::Browse(string const & in_name)
                // No - bail out to system clipart directory
                clipdir = AddName (system_lyxdir, "clipart");
        pair<string, string> dir1(N_("Clipart|#C#c"), clipdir);
-       
+       pair<string, string> dir2(N_("Documents|#o#O"), string(lyxrc.document_path));
        // Show the file browser dialog
-       return browseFile(&lv_, in_name, title, pattern, dir1);
+       return browseFile(&lv_, in_name, title, pattern, dir1, dir2);
 }
 
 string const ControlGraphics::readBB(string const & file)