diff --git a/src/lib/views/sunlight/vContext.cpp b/src/lib/views/sunlight/vContext.cpp index fc367f7..e502a73 100644 --- a/src/lib/views/sunlight/vContext.cpp +++ b/src/lib/views/sunlight/vContext.cpp @@ -76,18 +76,20 @@ */ // I really should detach from the parent here - if (pContext != NULL) pContext->vDetach(this); + if ((attached) && (pContext != NULL)) pContext->vDetach(this); curX = newX; curY = newY; // and reattach to parent here - if (pContext != NULL) pContext->vAttach(this); + if ((attached) && (pContext != NULL)) pContext->vAttach(this); return; } // vContext::vSetPos void vContext::vSetSize(uInt32 newWidth, uInt32 newHeight) { +// if ((attached) && (pContext != NULL)) pContext->vDetach(this); width = newWidth; height = newHeight; +// if ((attached) && (pContext != NULL)) pContext->vAttach(this); } // vContext::vSetSize void