[gnumeric] Solver: fix typo in constraint validation.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Solver: fix typo in constraint validation.
- Date: Sat, 26 Feb 2011 13:26:00 +0000 (UTC)
commit 022c38d8aaa8cc093554f1e04c5c74766aa876f1
Author: Morten Welinder <terra gnome org>
Date: Sat Feb 26 08:25:27 2011 -0500
Solver: fix typo in constraint validation.
NEWS | 1 +
src/tools/ChangeLog | 5 +++++
src/tools/gnm-solver.c | 2 +-
3 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/NEWS b/NEWS
index d4f3b71..26f6a81 100644
--- a/NEWS
+++ b/NEWS
@@ -21,6 +21,7 @@ Morten:
* Fix potential crash on quick exit.
* Fix stf import problem diagnosed by Andreas. [#642477]
* Restore toolbar positioning code.
+ * Fix solver crash. [Redhat #680572]
--------------------------------------------------------------------------
Gnumeric 1.10.13
diff --git a/src/tools/ChangeLog b/src/tools/ChangeLog
index 6fa15c9..cc1b88b 100644
--- a/src/tools/ChangeLog
+++ b/src/tools/ChangeLog
@@ -1,3 +1,8 @@
+2011-02-26 Morten Welinder <terra gnome org>
+
+ * gnm-solver.c (gnm_solver_constraint_valid): Fix typo. (Part of
+ Redhat 680572.)
+
2011-02-18 Andreas J. Guelzow <aguelzow pyrshep ca>
* analysis-histogram.h (analysis_tools_data_histogram_t): add field
diff --git a/src/tools/gnm-solver.c b/src/tools/gnm-solver.c
index 1c70e01..66e5a2a 100644
--- a/src/tools/gnm-solver.c
+++ b/src/tools/gnm-solver.c
@@ -178,7 +178,7 @@ gnm_solver_constraint_valid (GnmSolverConstraint const *c,
return FALSE;
if (gnm_solver_constraint_has_rhs (c)) {
- GnmValue const *rhs = gnm_solver_constraint_get_lhs (c);
+ GnmValue const *rhs = gnm_solver_constraint_get_rhs (c);
if (rhs == NULL)
return FALSE;
if (rhs->type == VALUE_CELLRANGE) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]