aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2014-06-20 12:39:33 +1000
committernyamatongwe <unknown>2014-06-20 12:39:33 +1000
commit165f965ccd9e24f8c53be2f658f6695e9c5e1c14 (patch)
tree01216995190a49346e5c0a09a5daa7d9420af5e5
parent0aaf5f1957bfd366c184fa6de7a8c3dad1d97acc (diff)
downloadscintilla-mirror-165f965ccd9e24f8c53be2f658f6695e9c5e1c14.tar.gz
Protect against calling Cairo function on versions of Cairo before it existed.
-rw-r--r--gtk/PlatGTK.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx
index cd57607bc..88edfdec5 100644
--- a/gtk/PlatGTK.cxx
+++ b/gtk/PlatGTK.cxx
@@ -527,6 +527,7 @@ void SurfaceImpl::Release() {
}
bool SurfaceImpl::Initialised() {
+#if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 8, 0)
if (inited && context) {
if (cairo_status(context) == CAIRO_STATUS_SUCCESS) {
// Even when status is success, the target surface may have been
@@ -543,6 +544,7 @@ bool SurfaceImpl::Initialised() {
}
return cairo_status(context) == CAIRO_STATUS_SUCCESS;
}
+#endif
return inited;
}