diff options
author | Michael Stahl <mstahl@redhat.com> | 2011-11-24 00:52:07 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2011-11-24 00:52:07 +0100 |
commit | 9ace8bebd88ff41d65eeaa87a6d1f1dfd8875b6d (patch) | |
tree | aa0104d77acfc11fdf73f4705fba205443cf5750 /sw/source/ui/envelp/labprt.cxx | |
parent | e70c28c4f4f589edf2a74d21648acc212eb80485 (diff) |
sw: enable more debug code:
Whole bunch of code is #if OSL_DEBUG_LEVEL > 1, reduce that to > 0 so more
assertions are active when building --enable-debug or --enable-dbgutil.
Diffstat (limited to 'sw/source/ui/envelp/labprt.cxx')
-rw-r--r-- | sw/source/ui/envelp/labprt.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sw/source/ui/envelp/labprt.cxx b/sw/source/ui/envelp/labprt.cxx index b4b7348d60f6..13e054610021 100644 --- a/sw/source/ui/envelp/labprt.cxx +++ b/sw/source/ui/envelp/labprt.cxx @@ -113,12 +113,11 @@ IMPL_LINK( SwLabPrtPage, CountHdl, Button *, pButton ) aRowField.Enable(bEnable); aSynchronCB.Enable(!bEnable); + OSL_ENSURE(!bEnable || pButton == &aPageButton, "NewButton?" ); if ( bEnable ) + { aColField.GrabFocus(); -#if OSL_DEBUG_LEVEL > 1 - else - OSL_ENSURE( pButton == &aPageButton, "NewButton?" ); -#endif + } return 0; } |