From 181ecd0c3bf27b47487f973fb83b988fd6ceaecf Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 2 Mar 2013 21:17:13 +0300 Subject: Another fixes after Coverity checks. --- src/gui/widgets/window.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gui/widgets/window.cpp') diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp index bb9e12320..54ed4764f 100644 --- a/src/gui/widgets/window.cpp +++ b/src/gui/widgets/window.cpp @@ -86,6 +86,11 @@ Window::Window(const std::string &caption, const bool modal, { logger->log("Window::Window(\"%s\")", caption.c_str()); +#ifndef USE_INTERNALGUICHAN + mDragOffsetX = 0; + mDragOffsetY = 0; +#endif + if (!windowContainer) throw GCN_EXCEPTION("Window::Window(): no windowContainer set"); -- cgit v1.2.3-70-g09d2