[Pixelle-commit] SF.net SVN: pixelle:[255] trunk/pixelle/src/com/mebigfatguy/pixelle/dialogs /Pixe
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2009-02-19 04:15:25
|
Revision: 255
http://pixelle.svn.sourceforge.net/pixelle/?rev=255&view=rev
Author: dbrosius
Date: 2009-02-19 04:15:22 +0000 (Thu, 19 Feb 2009)
Log Message:
-----------
if user removes all the source images, add back in the default image
Modified Paths:
--------------
trunk/pixelle/src/com/mebigfatguy/pixelle/dialogs/PixelleExpressionDialog.java
Modified: trunk/pixelle/src/com/mebigfatguy/pixelle/dialogs/PixelleExpressionDialog.java
===================================================================
--- trunk/pixelle/src/com/mebigfatguy/pixelle/dialogs/PixelleExpressionDialog.java 2009-02-18 07:27:28 UTC (rev 254)
+++ trunk/pixelle/src/com/mebigfatguy/pixelle/dialogs/PixelleExpressionDialog.java 2009-02-19 04:15:22 UTC (rev 255)
@@ -157,7 +157,11 @@
}
public PixelleImage[] getSourceImages() {
- return sourcePanel.getSourceImages();
+ PixelleImage[] images = sourcePanel.getSourceImages();
+ if (images.length == 0)
+ images = new PixelleImage[] { frame.getImage() };
+
+ return images;
}
private void initComponents() {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|