Commit 9a484b5a authored by Morten Welinder's avatar Morten Welinder

gnm_expr_as_string: Add defaults for debugging.

parent 3f2c7cf9
2009-04-24 Morten Welinder <terra@gnome.org>
* src/expr.c (gnm_expr_as_string): Add defaults for debugging.
* src/sheet.c (gnm_sheet_resize_main): Restrict the selection to
the size of the new sheet.
......
......@@ -27,6 +27,7 @@
#include "expr-impl.h"
#include "expr-name.h"
#include "dependent.h"
#include "application.h"
#include "func.h"
#include "cell.h"
#include "sheet.h"
......@@ -1723,10 +1724,24 @@ gnm_expr_as_string (GnmExpr const *expr, GnmParsePos const *pp,
GnmConventions const *convs)
{
GnmConventionsOut out;
GnmParsePos pp0;
g_return_val_if_fail (expr != NULL, NULL);
g_return_val_if_fail (pp != NULL, NULL);
/*
* Defaults for debugging only!
*/
if (!convs)
convs = gnm_conventions_default;
if (!pp) {
/* UGH: Just get the first sheet in the first workbook! */
Workbook *wb = gnm_app_workbook_get_by_index (0);
Sheet *sheet = workbook_sheet_by_index (wb, 0);
parse_pos_init (&pp0, NULL, sheet, 0, 0);
pp = &pp0;
}
out.accum = g_string_new (NULL);
out.pp = pp;
out.convs = convs;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment