summaryrefslogtreecommitdiff
path: root/vcl/source/control/tabctrl.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-11-12 08:51:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-11-12 12:49:43 +0100
commit6ab83f201d80151a9a7ee22dec412e1c014c4063 (patch)
treee50678a6b57b539359b41ba3c8ef6bda2127ab58 /vcl/source/control/tabctrl.cxx
parentbf8c1e277159b82362ed8f3a83d1abd0460a25c8 (diff)
loplugin:singlevalfields in vcl
Change-Id: I71367548ae15ef78f9860bab9bb05c96b82eb54a Reviewed-on: https://gerrit.libreoffice.org/63275 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/control/tabctrl.cxx')
-rw-r--r--vcl/source/control/tabctrl.cxx5
1 files changed, 0 insertions, 5 deletions
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx
index e0b38b2549d8..ea022457025b 100644
--- a/vcl/source/control/tabctrl.cxx
+++ b/vcl/source/control/tabctrl.cxx
@@ -93,7 +93,6 @@ void TabControl::ImplInit( vcl::Window* pParent, WinBits nStyle )
mnLastWidth = 0;
mnLastHeight = 0;
- mnMaxPageWidth = 0;
mnActPageId = 0;
mnCurPageId = 0;
mbFormat = true;
@@ -383,8 +382,6 @@ bool TabControl::ImplPlaceTabs( long nWidth )
//aBreakIndexes will contain the indexes of the last tab on each row
std::deque<size_t> aBreakIndexes(MinimumRaggednessWrap::GetEndOfLineIndexes(aWidths, nMaxWidth - nOffsetX - 2));
- if ( (mnMaxPageWidth > 0) && (mnMaxPageWidth < nMaxWidth) )
- nMaxWidth = mnMaxPageWidth;
nMaxWidth -= GetItemsOffset().X();
long nX = nOffsetX;
@@ -2373,8 +2370,6 @@ bool NotebookbarTabControlBase::ImplPlaceTabs( long nWidth )
aWidths.push_back(0);
}
- if ( (mnMaxPageWidth > 0) && (mnMaxPageWidth < nMaxWidth) )
- nMaxWidth = mnMaxPageWidth;
nMaxWidth -= GetItemsOffset().X();
long nX = nOffsetX;