aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2013-05-09 23:04:11 +0200
committerThomas White <taw@bitwiz.org.uk>2013-05-09 23:04:11 +0200
commitf4dbc27618e54fff8f926ebb6298c375725fd4bf (patch)
treec2027810e6ec234da3922f027aa63b96a287babd /src
parent7ca0e4e398cea2e93b2597985b9f449d67060a39 (diff)
Clean up
Diffstat (limited to 'src')
-rw-r--r--src/render.c8
-rw-r--r--src/storycode.c2
2 files changed, 4 insertions, 6 deletions
diff --git a/src/render.c b/src/render.c
index 8a3207c..5c0ca09 100644
--- a/src/render.c
+++ b/src/render.c
@@ -189,11 +189,7 @@ static void run_render_sc(cairo_t *cr, struct frame *fr, const char *sc)
struct scblock *b;
bl = sc_find_blocks(sc, "bgcol");
-
- if ( bl == NULL ) {
- printf("Failed to find blocks.\n");
- return;
- }
+ if ( bl == NULL ) return;
for ( b = sc_block_list_first(bl, &iter);
b != NULL;
@@ -506,7 +502,7 @@ cairo_surface_t *render_slide(struct slide *s, int w, double ww, double hh)
cairo_set_line_width(cr, 1.0);
cairo_stroke(cr);
- show_heirarchy(s->top, "");
+ //show_heirarchy(s->top, "");
composite_slide(s, cr, scale);
diff --git a/src/storycode.c b/src/storycode.c
index 8cc1a1f..27dbc43 100644
--- a/src/storycode.c
+++ b/src/storycode.c
@@ -259,6 +259,8 @@ SCBlockList *sc_find_blocks(const char *sc, const char *blockname)
char *tbuf;
size_t len, i, j, start;
+ if ( sc == NULL ) return NULL;
+
bl = sc_block_list_new();
if ( bl == NULL ) return NULL;