mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
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:
parent
6ecba18fae
commit
f31a432383
4 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue