Ticket #13378: 0001-Fixes-13378.patch

File 0001-Fixes-13378.patch, 1.6 KB (added by anirudh, 8 years ago)

Fixes #13378

  • src/kits/interface/CheckBox.cpp

    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)  
    120120    BRect labelRect(Bounds());
    121121    labelRect.left = checkBoxRect.right + 1
    122122        + be_control_look->DefaultLabelSpacing();
     123       
     124    labelRect.bottom = labelRect.bottom + 1
     125        - be_control_look->DefaultLabelSpacing();
    123126
    124127    const BBitmap* icon = IconBitmap(
    125128        B_INACTIVE_ICON_BITMAP | (IsEnabled() ? 0 : B_DISABLED_ICON_BITMAP));
    B_IF_GCC_2(InvalidateLayout__9BCheckBoxb, _ZN9BCheckBox16InvalidateLayoutEb)(  
    575578
    576579    box->Perform(PERFORM_CODE_LAYOUT_INVALIDATED, &data);
    577580}
    578 
  • src/kits/interface/RadioButton.cpp

    diff --git a/src/kits/interface/RadioButton.cpp b/src/kits/interface/RadioButton.cpp
    index 0469833..557d4ce 100644
    a b BRadioButton::Draw(BRect updateRect)  
    106106    BRect labelRect(Bounds());
    107107    labelRect.left = knobRect.right + 1
    108108        + be_control_look->DefaultLabelSpacing();
     109       
     110    labelRect.bottom = labelRect.bottom + 1
     111      - be_control_look->DefaultLabelSpacing();
    109112
    110113    const BBitmap* icon = IconBitmap(
    111114        B_INACTIVE_ICON_BITMAP | (IsEnabled() ? 0 : B_DISABLED_ICON_BITMAP));