diff --git a/src/servers/app/Layer.cpp b/src/servers/app/Layer.cpp index 8fc53e7948..7d0801e023 100644 --- a/src/servers/app/Layer.cpp +++ b/src/servers/app/Layer.cpp @@ -6,10 +6,10 @@ * DarkWyrm * Adi Oanca * Stephan Aßmus - * - * Description: - * Class used for tracking drawing context and screen clipping. - * One Layer per client BWindow (WindowBorder) and each BView therein. + */ + +/** Class used for tracking drawing context and screen clipping. + * One Layer per client BWindow (WindowBorder) and each BView therein. */ #include @@ -39,6 +39,7 @@ # define STRACE(x) ; #endif + Layer::Layer(BRect frame, const char* name, int32 token, uint32 resize, uint32 flags, DrawingEngine* driver) : @@ -565,7 +566,7 @@ Layer::MoveBy(float x, float y) { STRACE(("Layer(%s)::MoveBy() START\n", Name())); if (!fParent) { - CRITICAL("ERROR: in Layer::MoveBy()! - No parent!\n"); + fFrame.OffsetBy(x, y); return; }