From ccd6051de3838baad9aa413afa34b2e6d1871b0f Mon Sep 17 00:00:00 2001 From: David Capello Date: Sun, 31 Jul 2011 22:42:10 -0300 Subject: [PATCH] UndoTransaction::newLayer() returns a LayerImage. --- src/undo_transaction.cpp | 2 +- src/undo_transaction.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/undo_transaction.cpp b/src/undo_transaction.cpp index 59e2cdaf7..42dbcf0ea 100644 --- a/src/undo_transaction.cpp +++ b/src/undo_transaction.cpp @@ -357,7 +357,7 @@ void UndoTransaction::replaceStockImage(int image_index, Image* new_image) /** * Creates a new transparent layer. */ -Layer* UndoTransaction::newLayer() +LayerImage* UndoTransaction::newLayer() { // new layer LayerImage* layer = new LayerImage(m_sprite); diff --git a/src/undo_transaction.h b/src/undo_transaction.h index 9fed9d619..9230b569c 100644 --- a/src/undo_transaction.h +++ b/src/undo_transaction.h @@ -85,7 +85,7 @@ public: void replaceStockImage(int image_index, Image* new_image); // for layers - Layer* newLayer(); + LayerImage* newLayer(); void removeLayer(Layer* layer); void moveLayerAfter(Layer *layer, Layer *after_this); void cropLayer(Layer* layer, int x, int y, int w, int h, int bgcolor);