projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6af800f
)
fix index of appended items (broken by previous commit)
author
Vadim Zeitlin
<vadim@wxwidgets.org>
Thu, 16 Jun 2005 00:34:43 +0000
(
00:34
+0000)
committer
Vadim Zeitlin
<vadim@wxwidgets.org>
Thu, 16 Jun 2005 00:34:43 +0000
(
00:34
+0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34668
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
src/msw/menu.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/msw/menu.cpp
b/src/msw/menu.cpp
index ee300d548cfc406bfc7c2c85d6339b83ffa01e5a..3ce1704aa8e2aca961e30fccbfa10ad1e655defe 100644
(file)
--- a/
src/msw/menu.cpp
+++ b/
src/msw/menu.cpp
@@
-385,8
+385,9
@@
bool wxMenu::DoInsertOrAppend(wxMenuItem *pItem, size_t pos)
LPCTSTR pData = NULL;
if ( pos == (size_t)-1 )
{
- // append at the end
- pos = GetMenuItemCount();
+ // append at the end (note that the item is already appended to
+ // internal data structures)
+ pos = GetMenuItemCount() - 1;
}
BOOL ok = false;