Generate new image when Surface is modified, otherwise we export the initially opened or save file even though changes were made!

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1611 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-01-27 08:52:40 +00:00
commit f31a432383
4 changed files with 4 additions and 4 deletions

View file

@ -167,7 +167,7 @@ namespace Greenshot.Destinations {
// Outlook logic
string tmpFile = captureDetails.Filename;
if (tmpFile == null) {
if (tmpFile == null || surface.Modified) {
using (Image image = surface.GetImageForExport()) {
tmpFile = ImageOutput.SaveNamedTmpFile(image, captureDetails, conf.OutputFileFormat, conf.OutputFileJpegQuality);
}

View file

@ -107,7 +107,7 @@ namespace Greenshot.Destinations {
public override bool ExportCapture(ISurface surface, ICaptureDetails captureDetails) {
string tmpFile = captureDetails.Filename;
if (tmpFile == null) {
if (tmpFile == null || surface.Modified) {
using (Image image = surface.GetImageForExport()) {
tmpFile = ImageOutput.SaveNamedTmpFile(image, captureDetails, conf.OutputFileFormat, conf.OutputFileJpegQuality);
}

View file

@ -108,7 +108,7 @@ namespace Greenshot.Destinations {
public override bool ExportCapture(ISurface surface, ICaptureDetails captureDetails) {
string tmpFile = captureDetails.Filename;
Size imageSize = Size.Empty;
if (tmpFile == null) {
if (tmpFile == null || surface.Modified) {
using (Image image = surface.GetImageForExport()) {
tmpFile = ImageOutput.SaveNamedTmpFile(image, captureDetails, conf.OutputFileFormat, conf.OutputFileJpegQuality);
imageSize = image.Size;

View file

@ -109,7 +109,7 @@ namespace Greenshot.Destinations {
public override bool ExportCapture(ISurface surface, ICaptureDetails captureDetails) {
string tmpFile = captureDetails.Filename;
if (tmpFile == null) {
if (tmpFile == null || surface.Modified) {
using (Image image = surface.GetImageForExport()) {
tmpFile = ImageOutput.SaveNamedTmpFile(image, captureDetails, conf.OutputFileFormat, conf.OutputFileJpegQuality);
}