Kaydet (Commit) ef709181 authored tarafından Ashod Nakashian's avatar Ashod Nakashian Kaydeden (comit) Jan Holesovsky

custom widgets: correct focus colors and render button-up in listboxes

Change-Id: I70f46f94747f468a2bb79f8baa4576e4460bef31
üst e08293b0
......@@ -53,9 +53,8 @@ CustomWidgetDraw::~CustomWidgetDraw() {}
bool CustomWidgetDraw::isNativeControlSupported(ControlType eType, ControlPart ePart)
{
if (!s_pWidgetImplementation)
return false;
return s_pWidgetImplementation->isNativeControlSupported(eType, ePart);
return s_pWidgetImplementation
&& s_pWidgetImplementation->isNativeControlSupported(eType, ePart);
}
bool CustomWidgetDraw::hitTestNativeControl(ControlType /*eType*/, ControlPart /*ePart*/,
......@@ -302,11 +301,9 @@ bool CustomWidgetDraw::getNativeControlRegion(
ControlState eState, const ImplControlValue& /*aValue*/, const OUString& /*aCaption*/,
tools::Rectangle& rNativeBoundingRegion, tools::Rectangle& rNativeContentRegion)
{
if (!s_pWidgetImplementation)
return false;
return s_pWidgetImplementation->getRegion(eType, ePart, eState, rBoundingControlRegion,
rNativeBoundingRegion, rNativeContentRegion);
return s_pWidgetImplementation
&& s_pWidgetImplementation->getRegion(eType, ePart, eState, rBoundingControlRegion,
rNativeBoundingRegion, rNativeContentRegion);
}
bool CustomWidgetDraw::updateSettings(AllSettings& rSettings)
......
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