diff options
author | Malte Timmermann <mt@openoffice.org> | 2001-04-24 11:43:01 +0000 |
---|---|---|
committer | Malte Timmermann <mt@openoffice.org> | 2001-04-24 11:43:01 +0000 |
commit | 3950bf5920826d2c96a0b0e6a34e5ccb4ebe5104 (patch) | |
tree | 362e8a277b65c1f1e6fe3cc7ac960db6a4ca755b /vcl/source/control/spinfld.cxx | |
parent | fc11020dc9acd20c52651e08f5eba80c071c4212 (diff) |
#86292# Draw - not every SpinField has a SubEdit...
Diffstat (limited to 'vcl/source/control/spinfld.cxx')
-rw-r--r-- | vcl/source/control/spinfld.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/vcl/source/control/spinfld.cxx b/vcl/source/control/spinfld.cxx index 9884655d9ecc..3e54faafd29c 100644 --- a/vcl/source/control/spinfld.cxx +++ b/vcl/source/control/spinfld.cxx @@ -2,9 +2,9 @@ * * $RCSfile: spinfld.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: mt $ $Date: 2001-04-12 10:01:50 $ + * last change: $Author: mt $ $Date: 2001-04-24 12:43:01 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -731,7 +731,10 @@ IMPL_LINK( SpinField, ImplTimeout, Timer*, pTimer ) void SpinField::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, ULONG nFlags ) { - GetSubEdit()->Draw( pDev, rPos, rSize, nFlags ); + if ( GetSubEdit() ) + GetSubEdit()->Draw( pDev, rPos, rSize, nFlags ); + else + Draw( pDev, rPos, rSize, nFlags ); WinBits nStyle = GetStyle(); if ( !(nFlags & WINDOW_DRAW_NOCONTROLS ) && ( nStyle & (WB_SPIN|WB_DROPDOWN) ) ) |