X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=inline;f=src%2Foutput%2Fmanager.c;h=c8ff70c0d1a37917e2f1738512f181de7d3de6b6;hb=7ae8b9ba0e2634a5b72ac6470ebbdf92a78b7892;hp=f7d0b5eb749483a30ef7530fa89394b07e098c38;hpb=a19b858e0ac3c69e4a28c0ca6d8674427268a863;p=pspp diff --git a/src/output/manager.c b/src/output/manager.c index f7d0b5eb74..c8ff70c0d1 100644 --- a/src/output/manager.c +++ b/src/output/manager.c @@ -19,11 +19,9 @@ #include #include "manager.h" -#include #include #include #include "output.h" -#include /* Table. */ int table_num = 1; @@ -147,13 +145,7 @@ output_entity (struct outp_driver *driver, struct som_entity *entity) bool fits_width, fits_length; d = driver; - assert (d->driver_open); - if (!d->page_open && !d->class->open_page (d)) - { - d->device = OUTP_DEV_DISABLED; - return; - } - + outp_open_page (d); if (d->class->special || entity->type == SOM_CHART) { driver->class->submit (d, entity); @@ -214,7 +206,9 @@ render_columns (void) { assert (d->cp_y); outp_eject_page (d); - } else { + } + else + { if (len > max_len) max_len = len; @@ -285,7 +279,9 @@ render_segments (void) { assert (d->cp_y); outp_eject_page (d); - } else { + } + else + { t->class->title (x_index ? x_index : y_index, x_index ? y_index : 0); t->class->render (x0, y0, x1, y1);