From 77d970d99de0489b18ed4d44bfb561d671e2b5f1 Mon Sep 17 00:00:00 2001 From: Russell Standish Date: Fri, 12 Apr 2024 16:12:36 +1000 Subject: [PATCH] Throw runtime_error, not error from pango. --- include/pango.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/pango.h b/include/pango.h index 8f43add..7971774 100644 --- a/include/pango.h +++ b/include/pango.h @@ -17,8 +17,8 @@ #ifdef PANGO #include #include -#include +#include #include #include @@ -50,7 +50,7 @@ namespace ecolab void throwOnError() const { cairo_status_t status=cairo_status(cairo); if (status!=CAIRO_STATUS_SUCCESS) - throw error(cairo_status_to_string(status)); + throw std::runtime_error(cairo_status_to_string(status)); } double scale; public: