From df515c6f3b41d290f3113707a7ba13d432b3bb7d Mon Sep 17 00:00:00 2001 From: Rodrigo Braz Monteiro Date: Fri, 11 Jan 2008 03:38:06 +0000 Subject: [PATCH] Fixed #549 Originally committed to SVN as r1682. --- aegisub/dialog_fonts_collector.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/aegisub/dialog_fonts_collector.cpp b/aegisub/dialog_fonts_collector.cpp index cfceb3691..1147c5757 100644 --- a/aegisub/dialog_fonts_collector.cpp +++ b/aegisub/dialog_fonts_collector.cpp @@ -80,6 +80,7 @@ DialogFontsCollector::DialogFontsCollector(wxWindow *parent) wxFileName filename(AssFile::top->filename); dest = filename.GetPath(); } + while (dest.Right(1) == _T("/")) dest = dest.Left(dest.Length()-1); DestBox = new wxTextCtrl(this,-1,dest,wxDefaultPosition,wxSize(250,20),0); BrowseButton = new wxButton(this,BROWSE_BUTTON,_("&Browse...")); wxSizer *DestBottomSizer = new wxBoxSizer(wxHORIZONTAL);