|
From: David H. <no...@so...> - 2014-01-11 14:20:57
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "codelite".
The branch, master has been updated
via 522dc333a39f754f39308ce610aaff09fe0a8d9b (commit)
from 3d16ef3517db1bc1d2a20342de928690bf0665d8 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceforge.net/p/codelite/codelitegit/ci/522dc333a39f754f39308ce610aaff09fe0a8d9b
commit 522dc333a39f754f39308ce610aaff09fe0a8d9b
Author: dghart <da...@4P...>
Date: Sat Jan 11 14:19:48 2014 +0000
Prevent an assert when a gtk notebook page has no image
diff --git a/Plugin/gtk_notebook_ex.cpp b/Plugin/gtk_notebook_ex.cpp
index 53f8daf..ac866df 100644
--- a/Plugin/gtk_notebook_ex.cpp
+++ b/Plugin/gtk_notebook_ex.cpp
@@ -675,6 +675,10 @@ wxBitmap Notebook::GetPageBitmap(size_t page) const
}
int imgIdx = wxNotebook::GetPageImage(page);
+ if (imgIdx == wxNOT_FOUND) {
+ return wxNullBitmap;
+ }
+
return m_imgList->GetBitmap(imgIdx);
}
-----------------------------------------------------------------------
Summary of changes:
Plugin/gtk_notebook_ex.cpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
hooks/post-receive
--
codelite
|