diff options
author | Carsten Driesner <cd@openoffice.org> | 2011-03-16 13:19:11 +0100 |
---|---|---|
committer | Carsten Driesner <cd@openoffice.org> | 2011-03-16 13:19:11 +0100 |
commit | 95a6c29ae8853bead767ff4434b5af88e107994f (patch) | |
tree | 02373e13a44d6d445763a079819f0c007544e9c2 /fpicker | |
parent | fwk167: #i117378# Use BOOL instead of sal_Bool for Windows specific code. (diff) | |
download | core-95a6c29ae8853bead767ff4434b5af88e107994f.tar.gz core-95a6c29ae8853bead767ff4434b5af88e107994f.zip |
fwk167: #i117378# Use safer way to check for visibility
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/win32/filepicker/previewadapter.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpicker/source/win32/filepicker/previewadapter.cxx b/fpicker/source/win32/filepicker/previewadapter.cxx index b341a5b8252f..2506dce59ede 100644 --- a/fpicker/source/win32/filepicker/previewadapter.cxx +++ b/fpicker/source/win32/filepicker/previewadapter.cxx @@ -308,7 +308,7 @@ void SAL_CALL CPreviewAdapterImpl::rearrangeLayout() // style bit of the FileOpen dialog must be set after that // message LONG lStyle = GetWindowLong(prvwnd,GWL_STYLE); - BOOL bIsVisible = (BOOL)(lStyle & WS_VISIBLE); + BOOL bIsVisible = ((lStyle & WS_VISIBLE) != 0); int cx = 0; |