From 12ae775fe01c10139e278b91aa47f3c878d7a306 Mon Sep 17 00:00:00 2001
From: Anirudh Murali <m.anirudh18@gmail.com>
Date: Fri, 14 Apr 2017 22:21:10 +0530
Subject: [PATCH] Fixes #13378
---
src/kits/interface/CheckBox.cpp | 4 +++-
src/kits/interface/RadioButton.cpp | 3 +++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/kits/interface/CheckBox.cpp b/src/kits/interface/CheckBox.cpp
index 8e20d6b..641a9ef 100644
a
|
b
|
BCheckBox::Draw(BRect updateRect)
|
120 | 120 | BRect labelRect(Bounds()); |
121 | 121 | labelRect.left = checkBoxRect.right + 1 |
122 | 122 | + be_control_look->DefaultLabelSpacing(); |
| 123 | |
| 124 | labelRect.bottom = labelRect.bottom + 1 |
| 125 | - be_control_look->DefaultLabelSpacing(); |
123 | 126 | |
124 | 127 | const BBitmap* icon = IconBitmap( |
125 | 128 | B_INACTIVE_ICON_BITMAP | (IsEnabled() ? 0 : B_DISABLED_ICON_BITMAP)); |
… |
… |
B_IF_GCC_2(InvalidateLayout__9BCheckBoxb, _ZN9BCheckBox16InvalidateLayoutEb)(
|
575 | 578 | |
576 | 579 | box->Perform(PERFORM_CODE_LAYOUT_INVALIDATED, &data); |
577 | 580 | } |
578 | | |
diff --git a/src/kits/interface/RadioButton.cpp b/src/kits/interface/RadioButton.cpp
index 0469833..557d4ce 100644
a
|
b
|
BRadioButton::Draw(BRect updateRect)
|
106 | 106 | BRect labelRect(Bounds()); |
107 | 107 | labelRect.left = knobRect.right + 1 |
108 | 108 | + be_control_look->DefaultLabelSpacing(); |
| 109 | |
| 110 | labelRect.bottom = labelRect.bottom + 1 |
| 111 | - be_control_look->DefaultLabelSpacing(); |
109 | 112 | |
110 | 113 | const BBitmap* icon = IconBitmap( |
111 | 114 | B_INACTIVE_ICON_BITMAP | (IsEnabled() ? 0 : B_DISABLED_ICON_BITMAP)); |