Commit baa5dd93 authored by Michael Meeks's avatar Michael Meeks Committed by Michael Meeks

Fix silly buglet for blank sheets.

2000-02-11  Michael Meeks  <michael@helixcode.com>

	* src/sheet.c (sheet_get_extent): Fix silly buglet for blank sheets.

	* configure.in: split out GB autoconf from EXTRA_GNOME_LIBS
parent a36b72c8
2000-02-11 Michael Meeks <michael@helixcode.com>
* src/sheet.c (sheet_get_extent): Fix silly buglet for blank sheets.
* configure.in: split out GB autoconf from EXTRA_GNOME_LIBS
2000-02-10 Michael Meeks <michael@helixcode.com>
* src/clipboard.c (sheet_paste_selection): pass CellPos.
......
2000-02-11 Michael Meeks <michael@helixcode.com>
* src/sheet.c (sheet_get_extent): Fix silly buglet for blank sheets.
* configure.in: split out GB autoconf from EXTRA_GNOME_LIBS
2000-02-10 Michael Meeks <michael@helixcode.com>
* src/clipboard.c (sheet_paste_selection): pass CellPos.
......
......@@ -203,6 +203,8 @@ try_gb=true
gb=
gb_msg=no
have_gb=false
GB_CFLAGS=
GB_LIBS=
AC_ARG_WITH(gb,
[--{with,without}-gb Compile with Gb support or without it],
if test x$withval = xno; then
......@@ -226,6 +228,8 @@ if $try_gb; then
if $gb_ok; then
AC_MSG_RESULT(found)
AC_DEFINE(ENABLE_GB)
GB_LIBS=`gnome-config --libs gb`
GB_CFLAGS=`gnome-config --cflags gb`
have_gb=true
gb=gb
gb_msg=yes
......@@ -234,6 +238,8 @@ if $try_gb; then
fi
fi
AM_CONDITIONAL(WITH_GB, $have_gb)
AC_SUBST(GB_CFLAGS)
AC_SUBST(GB_LIBS)
dnl ******************************
dnl GnomePrint checking
......@@ -282,8 +288,8 @@ else
AC_MSG_ERROR(Did not find GTK+ installed)
fi
EXTRA_GNOME_LIBS=`gnome-config --libs gnomeui print libglade $bonobo $gb`
EXTRA_GNOME_CFLAGS=`gnome-config --cflags gnomeui print libglade $bonobo $gb`
EXTRA_GNOME_LIBS=`gnome-config --libs gnomeui print libglade $bonobo`
EXTRA_GNOME_CFLAGS=`gnome-config --cflags gnomeui print libglade $bonobo`
AC_SUBST(EXTRA_GNOME_LIBS)
AC_SUBST(EXTRA_GNOME_CFLAGS)
......
......@@ -12,12 +12,11 @@ plugindir = $(libdir)/gnumeric/plugins/$(VERSION)
plugin_LTLIBRARIES = libgnum_gb.la
libgnum_gb_la_SOURCES = plugin.c
libgnum_gb_la_LIBADD = $(EXTRA_GNOME_LIBS) -lm @GLIB_LIBS@ -lgb -lgbrun
libgnum_gb_la_LIBADD = $(GB_LIBS) $(EXTRA_GNOME_LIBS) -lm @GLIB_LIBS@ -lgb -lgbrun
INCLUDES = \
-I$(GNUMERIC_SRC_DIR) \
-DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
-DGNUMERIC_VERSION=\""$(VERSION)"\" \
-I$(includedir) \
$(GNOME_INCLUDEDIR)
$(GNOME_INCLUDEDIR) $(GB_CFLAGS)
\ No newline at end of file
......@@ -615,6 +615,8 @@ sheet_get_extent (Sheet const *sheet)
*/
if (r.end.col > sheet->cols.max_used)
r.end.col = sheet->cols.max_used;
if (r.end.col < 0)
r.end.col = 0;
if (r.start.col > r.end.col)
r.start.col = r.end.col;
if (r.start.col < 0)
......@@ -622,6 +624,8 @@ sheet_get_extent (Sheet const *sheet)
if (r.end.row > sheet->rows.max_used)
r.end.row = sheet->rows.max_used;
if (r.end.row < 0)
r.end.row = 0;
if (r.start.row > r.end.row)
r.start.row = r.end.row;
if (r.start.row < 0)
......
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