From 097595d63c8fc0b3e6c17af7545100247f4ee57d Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Wed, 30 Jan 2002 19:14:09 +0000 Subject: [PATCH] Herbert's fix to bug #222. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3460 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/controllers/ChangeLog | 5 +++++ src/frontends/controllers/ControlGraphics.C | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/frontends/controllers/ChangeLog b/src/frontends/controllers/ChangeLog index de95441ba3..844af780e5 100644 --- a/src/frontends/controllers/ChangeLog +++ b/src/frontends/controllers/ChangeLog @@ -1,3 +1,8 @@ +2002-01-29 Herbert Voss + + * ControlGraphic.[C]: added a button for document path + when browsing -> bug 222 + 2002-01-27 Herbert Voss * ControlGraphic.[Ch]: added support for Bounding Box, other diff --git a/src/frontends/controllers/ControlGraphics.C b/src/frontends/controllers/ControlGraphics.C index e7964cc3a1..a6901546ee 100644 --- a/src/frontends/controllers/ControlGraphics.C +++ b/src/frontends/controllers/ControlGraphics.C @@ -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 dir1(N_("Clipart|#C#c"), clipdir); - + pair 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)