From f8fec5ebe08598005411e622aacad0e42163f012 Mon Sep 17 00:00:00 2001 From: RKrom Date: Fri, 8 Mar 2013 21:04:53 +0000 Subject: [PATCH] Fix for [#1462] where the filename is wrongly cropped. git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2529 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- GreenshotPlugin/Controls/SaveImageFileDialog.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/GreenshotPlugin/Controls/SaveImageFileDialog.cs b/GreenshotPlugin/Controls/SaveImageFileDialog.cs index fb6232adf..b9c144561 100644 --- a/GreenshotPlugin/Controls/SaveImageFileDialog.cs +++ b/GreenshotPlugin/Controls/SaveImageFileDialog.cs @@ -175,10 +175,7 @@ namespace GreenshotPlugin.Controls { /// a SaveFileDialog instance private void ApplySuggestedValues() { // build the full path and set dialog properties - string filenameFromPattern = FilenameHelper.GetFilenameWithoutExtensionFromPattern(conf.OutputFileFilenamePattern, captureDetails); - - FileName = Path.GetFileNameWithoutExtension(filenameFromPattern); - Extension = Path.GetExtension(filenameFromPattern); + FileName = FilenameHelper.GetFilenameWithoutExtensionFromPattern(conf.OutputFileFilenamePattern, captureDetails); } private string GetRootDirFromConfig() {