X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FXw%2FXw_Window.cxx;h=37d7ed690e80450be6b320fac5a75199b725fd81;hb=1a5007a9201098fdd8a668bc608747e94da95ce2;hpb=3818aacaa56a8c39dbeded6a540bfb40e8b1c69e diff --git a/src/Xw/Xw_Window.cxx b/src/Xw/Xw_Window.cxx index 3622de9769..37d7ed690e 100644 --- a/src/Xw/Xw_Window.cxx +++ b/src/Xw/Xw_Window.cxx @@ -389,7 +389,7 @@ void Xw_Window::Unmap() const // function : DoResize // purpose : // ======================================================================= -Aspect_TypeOfResize Xw_Window::DoResize() const +Aspect_TypeOfResize Xw_Window::DoResize() { if (myXWindow == 0) { @@ -425,10 +425,10 @@ Aspect_TypeOfResize Xw_Window::DoResize() const default: break; } - *((Standard_Integer* )&myXLeft ) = aWinAttr.x; - *((Standard_Integer* )&myXRight ) = aWinAttr.x + aWinAttr.width; - *((Standard_Integer* )&myYTop ) = aWinAttr.y; - *((Standard_Integer* )&myYBottom ) = aWinAttr.y + aWinAttr.height; + myXLeft = aWinAttr.x; + myXRight = aWinAttr.x + aWinAttr.width; + myYTop = aWinAttr.y; + myYBottom = aWinAttr.y + aWinAttr.height; return aMode; }