aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <nyamatongwe@gmail.com>2013-01-30 10:35:54 +1100
committernyamatongwe <nyamatongwe@gmail.com>2013-01-30 10:35:54 +1100
commita829b2334bda5567113d9c63e91ceb041ed99f34 (patch)
tree46bae3ffd677b8799e551bf28440919462ca21e6
parente3963064ab39c1155c2fe364ee68e4944bbcc19e (diff)
downloadscintilla-mirror-a829b2334bda5567113d9c63e91ceb041ed99f34.tar.gz
Added assert to silence Xcode analyse warning.
-rw-r--r--src/ViewStyle.cxx2
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++) {