Herbert's fix to bug #222.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3460 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2002-01-30 19:14:09 +00:00
parent b0f054d030
commit 097595d63c
2 changed files with 8 additions and 2 deletions

View 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> 2002-01-27 Herbert Voss <voss@lyx.org>
* ControlGraphic.[Ch]: added support for Bounding Box, other * ControlGraphic.[Ch]: added support for Bounding Box, other

View File

@ -27,6 +27,7 @@
#include "Dialogs.h" #include "Dialogs.h"
#include "LyXView.h" #include "LyXView.h"
#include "gettext.h" #include "gettext.h"
#include "lyxrc.h"
#include "insets/insetgraphics.h" #include "insets/insetgraphics.h"
#include "insets/insetgraphicsParams.h" // need operator!=() #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 // No - bail out to system clipart directory
clipdir = AddName (system_lyxdir, "clipart"); clipdir = AddName (system_lyxdir, "clipart");
pair<string, string> dir1(N_("Clipart|#C#c"), clipdir); 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 // 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) string const ControlGraphics::readBB(string const & file)