Kaydet (Commit) 84b1ab44 authored tarafından Caolán McNamara's avatar Caolán McNamara

FloatWinPopupFlags::NoMouseRectClose was never set

Change-Id: I5df81113c5ab4009eff82ec0d8c15094a1e24a3a
üst e0575602
...@@ -37,17 +37,16 @@ enum class FloatWinPopupFlags ...@@ -37,17 +37,16 @@ enum class FloatWinPopupFlags
Left = 0x000008, Left = 0x000008,
Right = 0x000010, Right = 0x000010,
NoKeyClose = 0x000020, NoKeyClose = 0x000020,
NoMouseRectClose = 0x000040, AllMouseButtonClose = 0x000040,
AllMouseButtonClose = 0x000080, NoAppFocusClose = 0x000080,
NoAppFocusClose = 0x000100, NewLevel = 0x000100,
NewLevel = 0x000200, NoMouseUpClose = 0x000200,
NoMouseUpClose = 0x000400, GrabFocus = 0x000400,
GrabFocus = 0x000800, NoHorzPlacement = 0x000800,
NoHorzPlacement = 0x001000,
}; };
namespace o3tl namespace o3tl
{ {
template<> struct typed_flags<FloatWinPopupFlags> : is_typed_flags<FloatWinPopupFlags, 0x001fff> {}; template<> struct typed_flags<FloatWinPopupFlags> : is_typed_flags<FloatWinPopupFlags, 0x0fff> {};
} }
enum class FloatWinPopupEndFlags enum class FloatWinPopupEndFlags
......
...@@ -105,8 +105,7 @@ static bool ImplHandleMouseFloatMode( vcl::Window* pChild, const Point& rMousePo ...@@ -105,8 +105,7 @@ static bool ImplHandleMouseFloatMode( vcl::Window* pChild, const Point& rMousePo
} }
else if ( nHitTest == HITTEST_RECT ) else if ( nHitTest == HITTEST_RECT )
{ {
if ( !(pFloat->GetPopupModeFlags() & FloatWinPopupFlags::NoMouseRectClose) ) pFloat->ImplSetMouseDown();
pFloat->ImplSetMouseDown();
return true; return true;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment