diff options
author | nyamatongwe <nyamatongwe@gmail.com> | 2013-01-30 10:35:54 +1100 |
---|---|---|
committer | nyamatongwe <nyamatongwe@gmail.com> | 2013-01-30 10:35:54 +1100 |
commit | a829b2334bda5567113d9c63e91ceb041ed99f34 (patch) | |
tree | 46bae3ffd677b8799e551bf28440919462ca21e6 | |
parent | e3963064ab39c1155c2fe364ee68e4944bbcc19e (diff) | |
download | scintilla-mirror-a829b2334bda5567113d9c63e91ceb041ed99f34.tar.gz |
Added assert to silence Xcode analyse warning.
-rw-r--r-- | src/ViewStyle.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index 9df8152a1..059f885f7 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -6,6 +6,7 @@ // The License.txt file describes the conditions under which this software may be distributed. #include <string.h> +#include <assert.h> #include <vector> #include <map> @@ -356,6 +357,7 @@ void ViewStyle::Refresh(Surface &surface) { CreateFont(styles[j]); } + assert(frFirst); frFirst->Realise(surface, zoomLevel, technology); for (unsigned int k=0; k<stylesSize; k++) { |