summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0639aaa)
raw | patch | inline | side by side (parent: 0639aaa)
author | theadib <theadib@users.sourceforge.net> | |
Sun, 1 Feb 2009 23:48:26 +0000 (23:48 +0000) | ||
committer | theadib <theadib@users.sourceforge.net> | |
Sun, 1 Feb 2009 23:48:26 +0000 (23:48 +0000) |
src/libnrtype/Layout-TNG-Compute.cpp | patch | blob | history |
index 2e65c2b24dd08f8cec2bd32466c58f85d8e3a6d6..7a2924d985d294196e10481e188f1257d7a174f5 100644 (file)
{
if (_flow._input_stream.empty())
return false;
- g_assert(_flow._input_stream.front()->Type() == TEXT_SOURCE);
+ /**
+ * hm, why do we want assert (crash) the application, now do simply return false
+ * \todo check if this is the correct behaviour
+ * g_assert(_flow._input_stream.front()->Type() == TEXT_SOURCE);
+ */
if (_flow._input_stream.front()->Type() != TEXT_SOURCE)
+ {
+ g_warning("flow text is not of type TEXT_SOURCE. Abort.");
return false;
-
+ }
TRACE(("begin calculateFlow()\n"));
_flow._clearOutputObjects();