Skip to content

Commit

Permalink
fix error message on Target_Scanline (#2511)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodolforg authored Jan 17, 2022
1 parent 938cfc0 commit cb9abcf
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions synfig-core/src/synfig/target_scanline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,9 @@ synfig::Target_Scanline::render(ProgressCallback *cb)
// loop through all the full rows
if(!start_frame())
{
// throw(string("add_frame(): target panic on start_frame()"));
// throw(string("render(): target panic on start_frame()"));
if(cb)
cb->error(_("add_frame(): target panic on start_frame()"));
cb->error(_("render(): target panic on start_frame()"));
return false;
}

Expand Down Expand Up @@ -272,9 +272,9 @@ synfig::Target_Scanline::render(ProgressCallback *cb)

if(!end_scanline())
{
// throw(string("add_frame(): target panic on end_scanline()"));
// throw(string("render(): target panic on end_scanline()"));
if(cb)
cb->error(_("add_frame(): target panic on end_scanline()"));
cb->error(_("render(): target panic on end_scanline()"));
return false;
}
}
Expand Down Expand Up @@ -346,9 +346,9 @@ synfig::Target_Scanline::render(ProgressCallback *cb)
// loop through all the full rows
if(!start_frame())
{
// throw(string("add_frame(): target panic on start_frame()"));
// throw(string("render(): target panic on start_frame()"));
if(cb)
cb->error(_("add_frame(): target panic on start_frame()"));
cb->error(_("render(): target panic on start_frame()"));
return false;
}

Expand Down Expand Up @@ -428,9 +428,9 @@ synfig::Target_Scanline::render(ProgressCallback *cb)

if(!end_scanline())
{
// throw(string("add_frame(): target panic on end_scanline()"));
// throw(string("render(): target panic on end_scanline()"));
if(cb)
cb->error(_("add_frame(): target panic on end_scanline()"));
cb->error(_("render(): target panic on end_scanline()"));
return false;
}
}
Expand Down

0 comments on commit cb9abcf

Please sign in to comment.