projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed intialization of coefficients
[pspp]
/
src
/
ui
/
gui
/
psppire-variable.c
diff --git
a/src/ui/gui/psppire-variable.c
b/src/ui/gui/psppire-variable.c
index 1256c82f98ec47075aef2f0ba193e54866357f26..3fa71ea30b5330fe194df1e6fd8e4745f286b527 100644
(file)
--- a/
src/ui/gui/psppire-variable.c
+++ b/
src/ui/gui/psppire-variable.c
@@
-346,9
+346,8
@@
psppire_variable_get_width(const struct PsppireVariable *pv)
}
}
-/* FIXME: This name is misleading */
gint
gint
-psppire_variable_get_
index
(const struct PsppireVariable *pv)
+psppire_variable_get_
fv
(const struct PsppireVariable *pv)
{
g_return_val_if_fail(pv, -1);
g_return_val_if_fail(pv->v, -1);
{
g_return_val_if_fail(pv, -1);
g_return_val_if_fail(pv->v, -1);
@@
-356,3
+355,14
@@
psppire_variable_get_index(const struct PsppireVariable *pv)
return pv->v->fv;
}
return pv->v->fv;
}
+
+
+gint
+psppire_variable_get_index(const struct PsppireVariable *pv)
+{
+ g_return_val_if_fail(pv, -1);
+ g_return_val_if_fail(pv->v, -1);
+
+ return pv->v->index;
+}
+