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
|
|
10 | 10 | * John Scipione, jscipione@gmail.com |
11 | 11 | * Ingo Weinhold, ingo_weinhold@gmx.de |
12 | 12 | * Clemens Zeidler, haiku@clemens-zeidler.de |
| 13 | * Sambuddha Basu, sambuddhabasu1@gmail.com |
13 | 14 | */ |
14 | 15 | |
15 | 16 | |
… |
… |
TabDecorator::_DistributeTabSize(float delta)
|
410 | 411 | |
411 | 412 | float maxTabSize = 0; |
412 | 413 | float secMaxTabSize = 0; |
413 | | int32 nTabsWithMaxSize = 0; |
| 414 | int32 nTabsWithMaxSize = 1; |
414 | 415 | for (int32 i = 0; i < fTabList.CountItems(); i++) { |
415 | 416 | Decorator::Tab* tab = fTabList.ItemAt(i); |
416 | 417 | float tabWidth = tab->tabRect.Width(); |