diff options
author | Oliver-Rainer Wittmann <orw@apache.org> | 2013-05-21 14:36:18 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-05-21 18:56:50 +0100 |
commit | 94a3dc9e47afc40be21838889a326489b133c2df (patch) | |
tree | 408d66a8cddecb8dfb46345516d505f3ed6d9868 /sc/source | |
parent | 303b6fe5bacd782dafbe370b472a9b724d782f2f (diff) |
Resolves: #i122261# Calc Navigator - assure non-overlapping layout
(cherry picked from commit e7fa6ef1cbae2354078ec185c987e16e004e8a5d)
Conflicts:
sc/source/ui/navipi/navipi.cxx
Change-Id: I91147e2c4f5647e719eb86d0b4b342ea0d9770a7
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/navipi/navipi.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sc/source/ui/navipi/navipi.cxx b/sc/source/ui/navipi/navipi.cxx index 5c5d7583476e..21f2178310d8 100644 --- a/sc/source/ui/navipi/navipi.cxx +++ b/sc/source/ui/navipi/navipi.cxx @@ -46,6 +46,8 @@ #include "navsett.hxx" #include "markdata.hxx" +#include <algorithm> + // Timeout, um Notizen zu suchen #define SC_CONTENT_TIMEOUT 1000 @@ -662,9 +664,11 @@ ScNavigatorDlg::ScNavigatorDlg( SfxBindings* pB, SfxChildWindowContext* pCW, Win aTitleBase = GetText(); - long nListboxYPos = - std::max( aTbxCmd.GetPosPixel().Y() + aTbxCmd.GetSizePixel().Height(), - aEdRow.GetPosPixel().Y() + aEdRow.GetSizePixel().Height() ) + 4; + const long nListboxYPos = + ::std::max( + (aTbxCmd.GetPosPixel().Y() + aTbxCmd.GetSizePixel().Height()), + (aEdRow.GetPosPixel().Y() + aEdRow.GetSizePixel().Height()) ) + + 4; aLbEntries.setPosSizePixel( 0, nListboxYPos, 0, 0, WINDOW_POSSIZE_Y); nBorderOffset = aLbEntries.GetPosPixel().X(); |