diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2014-01-31 21:56:58 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2014-01-31 21:56:58 +0000 |
| commit | 54f21698664f3b4ae65a4ece376dc404212a2639 (patch) | |
| tree | fe5ae3ee1d255f59c5a0fca8ec335b0cf4284bff /src/factory.h | |
| parent | simplify equations in get_scale_transform_for_variable_stroke() for the case ... (diff) | |
| download | inkscape-54f21698664f3b4ae65a4ece376dc404212a2639.tar.gz inkscape-54f21698664f3b4ae65a4ece376dc404212a2639.zip | |
Do not throw TypeNotRegistered exceptions for now, since they interfere
with debugging via 'catch throw'.
(bzr r12991)
Diffstat (limited to 'src/factory.h')
| -rw-r--r-- | src/factory.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/factory.h b/src/factory.h index a1df55277..d7f4cb2b9 100644 --- a/src/factory.h +++ b/src/factory.h @@ -63,7 +63,9 @@ public: typename std::map<std::string const, CreateFunction *>::const_iterator it = this->_object_map.find(id); if (it == this->_object_map.end()) { - throw FactoryExceptions::TypeNotRegistered(id); + //throw FactoryExceptions::TypeNotRegistered(id); + g_warning("unknown type: %s", id.c_str()); + return NULL; } return it->second(); |
