Commit Graph

39370 Commits

Author SHA1 Message Date
Vadim Zeitlin
854386fd92 fixed broken link and use \backslash instead of literal backslash which has special meaning in TeX in wxJoin() documentation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 18:56:39 +00:00
Vadim Zeitlin
d6b7a9285c added more wxART_XXX ids (patch 1687751)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 18:53:45 +00:00
Vadim Zeitlin
60f8c22b25 added more wxART_XXX ids (patch 1687750)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45167 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 18:50:31 +00:00
Vadim Zeitlin
a6e13ce4f3 added <set-wxlike> tag (patch 1691429)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45166 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 18:48:22 +00:00
Vadim Zeitlin
80dc1dd378 compilation fix for Win64 (patch 1690999)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45165 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 18:34:07 +00:00
Vadim Zeitlin
760fdb6755 added check for index validity to OnTabButton()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45164 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 16:49:42 +00:00
Vadim Zeitlin
849c353a39 added SetSelectionToPage/Window() to simplify code and fix more problems with passing possibly negative indices to SetSelection()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45163 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 16:48:43 +00:00
Vadim Zeitlin
7546ba03f3 don't pass potentially negative index to SetSelection()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45162 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 16:37:31 +00:00
Vadim Zeitlin
8fee630648 added IO errors handling to TGA reading code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 16:33:12 +00:00
Vadim Zeitlin
853c39d78b fix error handling in the generic branch of wxCopyFile()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 16:27:52 +00:00
Vadim Zeitlin
56ba039411 fixed memory leaks when reading invalid GIFs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45159 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 16:22:15 +00:00
Vadim Zeitlin
dda522bf4f fix memory leak in wxFileTypeImpl::SetCommand() if creating the association fails
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45158 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 16:13:12 +00:00
Vadim Zeitlin
2f769cb93b fix memory leak in wxFileTypeImpl::SetDefaultIcon() if creating the association fails
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45157 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 16:10:30 +00:00
Vadim Zeitlin
82c91ef51f don't dereference potentially NULL m_sock in Disconnect()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45156 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 16:08:25 +00:00
Vadim Zeitlin
ecb7235d76 don't use m_stylePopup inside GetRichTextCtrl() before testing whether it's NULL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45155 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 16:05:25 +00:00
Vadim Zeitlin
af4bfc044f check that we don't use a NULL pointer in XCopyRemote()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 15:59:11 +00:00
Vadim Zeitlin
fe03e62800 added wxCHECK to ensure that we don't dereference a NULL pointer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45153 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 15:57:43 +00:00
Vadim Zeitlin
bb5521a9f3 no real changes, just fixed confusing (to both people and coverity) mix of testing for m_parent and GetParent()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45152 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 15:53:09 +00:00
Vadim Zeitlin
641ed513f8 check for alpha first, then mask, in BlurHorizontal/Vertical(): not only this makes more sense but it also prevents crashing for images which have both (see coverity CID 172)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 15:49:08 +00:00
Vadim Zeitlin
16fc7c4524 no real changes, just attempt to work around false coverity report 130
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 15:46:32 +00:00
Vadim Zeitlin
cbaa866f0a use wxCHECK instead of wxASSERT to avoid use of NULL pointer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45149 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 15:39:49 +00:00
Vadim Zeitlin
cd5dea50f8 don't use potentially NULL m_styleListBox (coverity CID 190)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45148 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 15:35:44 +00:00
Vadim Zeitlin
54a8a78e3b OnTabEndDrag() didn't handle NULL src_tabs case correctly but it seems that this is not supposed to actually happen, so assert that it doesn't
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45147 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 15:32:45 +00:00
Vadim Zeitlin
e19a8aea87 removed virtual GetSelectedBitmap() from the base wxDC class, it only makes sense for wxMemoryDC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45146 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 15:27:08 +00:00
Vadim Zeitlin
ba5787676d test whether pointer is non-NULL before using it, not after, in wxAnimation::Load() (thanks coverity)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45145 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 13:43:31 +00:00
Vadim Zeitlin
26564cf29d test whether pointer is non-NULL before using it, not after, in wxDoFindStringInList (this was probably harmless though)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45144 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 13:41:44 +00:00
Vadim Zeitlin
29014baaa5 added a check that we have a non-NULL scrollbar in wxScrollBarCallback()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 13:39:24 +00:00
Vadim Zeitlin
c5c0121402 don't dereferencep ossibly NULL pointers in DoScreenToClient/ClientToScreen()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45142 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 13:34:41 +00:00
Vadim Zeitlin
e1379e29e2 don't return junk from wxGetOsVersion() if we failed to execute 'uname -r' (thanks coverity)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45141 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 13:22:18 +00:00
Vadim Zeitlin
d0cf495347 replaced run-time tests for wxRICHTEXT_USE_TOOLBOOK with compile-time ones to avoid warnings about condition being always true/false
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45140 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 13:19:43 +00:00
Vadim Zeitlin
a6a68df85b move m_perDisplayData destruction to dtor from CleanUp() to fix a rare memory leak
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45139 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 13:15:00 +00:00
Vadim Zeitlin
3681c515e2 check that the pointer is non-NULL before using it in OpenFile() (thanks coverity)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45138 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 13:11:09 +00:00
Vadim Zeitlin
4b5a7d3d09 check that filename pointer is non-NULL before using it, not after (coverity warning); don't pass NULL fp to fclose()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45137 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 13:06:29 +00:00
Vadim Zeitlin
61011e917f don't use C++ comments in C file
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 13:04:22 +00:00
Vadim Zeitlin
c6a6bbbf63 disable select root menu command when the root is hidden
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 12:58:01 +00:00
Vadim Zeitlin
8a536fa330 don't crash when attempting to select hidden tree root (bug 1681118)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 12:57:15 +00:00
Vadim Zeitlin
3f0df5c401 this project file is obsolete, now treectrl.dsp is used
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45133 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 12:45:58 +00:00
Vadim Zeitlin
61053de43b don't call gtk_label_set_line_wrap() from DoGetBestSize() as this results in an infinite resizing loop when the control is inside a GTK+ widget doing its own layout (such as wxToolBar)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45131 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 12:14:23 +00:00
Vadim Zeitlin
2e61f68141 fix PangoFontMetrics leak in GetCharHeight() (bug 1691180)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45128 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 11:48:58 +00:00
Chris Elliott
b8c73e75d0 allow absolute path
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45127 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 08:09:16 +00:00
Vadim Zeitlin
617fb24fc9 define wxHAS_NATIVE_TAB_TRAVERSAL in wx/features.h; include wx/defs.h from wx/containr.h to get this definition
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 02:07:49 +00:00
Václav Slavík
759d51f229 fixed warning about comparing int to size_t
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-29 19:10:43 +00:00
Václav Slavík
f4c90fdfaf added wxCStrData::operator- for compatibility with expressions like 'c_str() + n - 2'
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45124 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-29 18:42:04 +00:00
Václav Slavík
171d613212 added creation of wxUniChar from int and conversion to int, for backward compatibility
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45123 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-29 18:35:16 +00:00
Vadim Zeitlin
a237d7ed48 fix memory leak when handling background attribute (patch 1687900)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45121 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-29 18:12:59 +00:00
Vadim Zeitlin
6f45066bd8 fix compilation with wxUSE_EXTENDED_RTTI && !WXWIN_COMPATIBILITY_2_6 (bug 1688249)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45119 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-29 18:01:21 +00:00
Vadim Zeitlin
7c9cc57c02 rebaked with the fix for the directories with spaces in their names
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45117 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-29 17:43:46 +00:00
Vadim Zeitlin
a970aa7a50 added wx/cocoa/tooltip.h to COCOA_HDR (bug 1689148)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45116 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-29 17:42:30 +00:00
Vadim Zeitlin
eecc043f6c rebaked after adding new string-related headers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45115 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-29 17:40:32 +00:00
Václav Slavík
d483da3c76 more wxString::append() tests
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-29 16:14:26 +00:00