summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--cairomm/private.cc17
2 files changed, 13 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 823227a..eba347d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2007-07-04 Jonathon Jongsma <jjongsma@gnome.org>
+ * cairomm/private.cc: add missing 'break;' on the I/O error case statement
+
+2007-07-04 Jonathon Jongsma <jjongsma@gnome.org>
+
* cairomm/context.cc: when getting the source pattern of a Cairo::Context,
check which type of Pattern it is so that we create the correct C++ wrapper.
Without this, RefPtr<>::cast_dynamic() doesn't seem to work as we would
diff --git a/cairomm/private.cc b/cairomm/private.cc
index 68d09f9..5483f38 100644
--- a/cairomm/private.cc
+++ b/cairomm/private.cc
@@ -55,16 +55,17 @@ void throw_exception(ErrorStatus status)
throw Cairo::logic_error(status);
break;
- // Other
+ // Other
case CAIRO_STATUS_READ_ERROR:
case CAIRO_STATUS_WRITE_ERROR:
- {
- //The Cairo language binding advice suggests that these are stream errors
- //that should be mapped to their C++ equivalents.
- const char* error_message = cairo_status_to_string(status);
- throw std::ios_base::failure( error_message ? error_message : std::string() );
- }
-
+ {
+ //The Cairo language binding advice suggests that these are stream errors
+ //that should be mapped to their C++ equivalents.
+ const char* error_message = cairo_status_to_string(status);
+ throw std::ios_base::failure( error_message ? error_message : std::string() );
+ }
+ break;
+
default:
throw Cairo::logic_error(status);
break;