UndoTransaction::newLayer() returns a LayerImage.

This commit is contained in:
David Capello 2011-07-31 22:42:10 -03:00
parent 100894ceea
commit ccd6051de3
2 changed files with 2 additions and 2 deletions

View File

@ -357,7 +357,7 @@ void UndoTransaction::replaceStockImage(int image_index, Image* new_image)
/** /**
* Creates a new transparent layer. * Creates a new transparent layer.
*/ */
Layer* UndoTransaction::newLayer() LayerImage* UndoTransaction::newLayer()
{ {
// new layer // new layer
LayerImage* layer = new LayerImage(m_sprite); LayerImage* layer = new LayerImage(m_sprite);

View File

@ -85,7 +85,7 @@ public:
void replaceStockImage(int image_index, Image* new_image); void replaceStockImage(int image_index, Image* new_image);
// for layers // for layers
Layer* newLayer(); LayerImage* newLayer();
void removeLayer(Layer* layer); void removeLayer(Layer* layer);
void moveLayerAfter(Layer *layer, Layer *after_this); void moveLayerAfter(Layer *layer, Layer *after_this);
void cropLayer(Layer* layer, int x, int y, int w, int h, int bgcolor); void cropLayer(Layer* layer, int x, int y, int w, int h, int bgcolor);