Skip to content

Commit d59da49

Browse files
committed
Fix warning message when exporting/editing layers of a non-XCF image
1 parent 9f8bcd5 commit d59da49

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Changes to procedures:
1212
Bug fixes:
1313
* Fixed a crash on startup for macOS installation packages.
1414
* Fixed a crash in non-interactive mode if the settings file is not specified.
15+
* Fixed a warning message displayed when exporting or editing layers of an imported (i.e. non-XCF) image.
1516
* Fixed console warnings when opening the custom procedure browser.
1617

1718

batcher/pygimplib/pdbutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def duplicate_image_without_contents(image: Gimp.Image) -> Gimp.Image:
2828
new_image.undo_disable()
2929

3030
image_file = image.get_file()
31-
if image_file is not None:
31+
if image_file is not None and image.get_imported_file() is None:
3232
new_image.set_file(image_file)
3333

3434
new_image.set_resolution(*image.get_resolution()[1:])

0 commit comments

Comments
 (0)