summaryrefslogtreecommitdiff
path: root/src/layeng/cr-lay-eng.c
diff options
context:
space:
mode:
authorGaël CHAMOULAUD <strider@src.gnome.org>2003-08-17 19:19:24 +0000
committerGaël CHAMOULAUD <strider@src.gnome.org>2003-08-17 19:19:24 +0000
commit9cc84754c2f50204ae658d31a75d15f16e118be6 (patch)
treed7aa8741da5c55641731982f22c7c96f35a5c88b /src/layeng/cr-lay-eng.c
parentddff7a9bb96a6ab82baa1996700a2728005d574a (diff)
downloadlibcroco-9cc84754c2f50204ae658d31a75d15f16e118be6.tar.gz
Applied a patch from Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
* src/layeng/cr-lay-eng.c: (layout_block_box): * src/seleng/cr-sel-eng.c: (put_css_properties_in_hashtable): Applied a patch from Michael Culbertson <Michael.J.Culbertson@wheaton.edu> -> Compilation failed with gcc 2.95.4 due to declarations after calls to g_return_val_if_fail and the like.
Diffstat (limited to 'src/layeng/cr-lay-eng.c')
-rw-r--r--src/layeng/cr-lay-eng.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/layeng/cr-lay-eng.c b/src/layeng/cr-lay-eng.c
index ad82aec..161961d 100644
--- a/src/layeng/cr-lay-eng.c
+++ b/src/layeng/cr-lay-eng.c
@@ -1214,11 +1214,12 @@ layout_block_box (CRLayEng *a_this,
CRBox *a_cur_box)
{
enum CRStatus status = CR_OK ;
+ CRBox *cont_box = NULL;
g_return_val_if_fail (a_cur_box && a_cur_box->style,
CR_BAD_PARAM_ERROR) ;
- CRBox *cont_box = a_cur_box->parent ;
+ cont_box = a_cur_box->parent ;
/************************************
*We are in a block formating context