Ticket #11111: 0001-Issue-11111-Initialize-nTabsWithMaxSize-to-1-instead.patch

File 0001-Issue-11111-Initialize-nTabsWithMaxSize-to-1-instead.patch, 1.1 KB (added by sambuddhabasu1, 10 years ago)
  • src/servers/app/decorator/TabDecorator.cpp

    From f934fe3be557736beab0c3d73cc15c7dc6786fc7 Mon Sep 17 00:00:00 2001
    From: Sambuddha Basu <sambuddhabasu1@gmail.com>
    Date: Thu, 29 Jan 2015 22:15:21 +0530
    Subject: [PATCH] Issue 11111 - Initialize nTabsWithMaxSize to 1 instead of 0
    
    ---
     src/servers/app/decorator/TabDecorator.cpp | 3 ++-
     1 file changed, 2 insertions(+), 1 deletion(-)
    
    diff --git a/src/servers/app/decorator/TabDecorator.cpp b/src/servers/app/decorator/TabDecorator.cpp
    index 0d295a0..d0d737b 100644
    a b  
    1010 *      John Scipione, jscipione@gmail.com
    1111 *      Ingo Weinhold, ingo_weinhold@gmx.de
    1212 *      Clemens Zeidler, haiku@clemens-zeidler.de
     13 *      Sambuddha Basu, sambuddhabasu1@gmail.com
    1314 */
    1415
    1516
    TabDecorator::_DistributeTabSize(float delta)  
    410411
    411412    float maxTabSize = 0;
    412413    float secMaxTabSize = 0;
    413     int32 nTabsWithMaxSize = 0;
     414    int32 nTabsWithMaxSize = 1;
    414415    for (int32 i = 0; i < fTabList.CountItems(); i++) {
    415416        Decorator::Tab* tab = fTabList.ItemAt(i);
    416417        float tabWidth = tab->tabRect.Width();