summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornags <nags@nags-desktop.(none)>2009-10-20 22:38:17 -0700
committernags <nags@nags-desktop.(none)>2009-10-20 22:38:17 -0700
commit7630a24524f8620b2714037f7f9448e3db91d2b1 (patch)
tree02e05796ea04e00d41d198d1bcdd946ff1921856
parent987641768dd088f7b64ff86f160181dbde683d51 (diff)
Fixes bug # 599119 - checkrow action fails on table row
-rw-r--r--src/table.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/table.c b/src/table.c
index 9bd2c72..9c63585 100644
--- a/src/table.c
+++ b/src/table.c
@@ -1134,7 +1134,7 @@ static LDTPErrorCode
check_row (Accessible *object, int row, int col, FILE *log_fp)
{
long n_rows, n_cols;
- long j, n_actions;
+ long i, n_actions;
LDTPErrorCode error;
Accessible *cell;
AccessibleTable *table;
@@ -1143,11 +1143,6 @@ check_row (Accessible *object, int row, int col, FILE *log_fp)
char *name = NULL;
char msg[256];
- if (Accessible_isAction (object) == FALSE) {
- error = LDTP_ERROR_CHECK_ACTION_FAILED;
- return error;
- }
-
table = Accessible_getTable (object);
n_rows = AccessibleTable_getNRows (table);
n_cols = AccessibleTable_getNColumns (table);
@@ -1176,8 +1171,8 @@ check_row (Accessible *object, int row, int col, FILE *log_fp)
n_actions = AccessibleAction_getNActions (action);
- for (j = 0; j < n_actions; j++) {
- name = AccessibleAction_getName (action, j);
+ for (i = 0; i < n_actions; i++) {
+ name = AccessibleAction_getName (action, i);
if (g_ascii_strcasecmp (name, "toggle") == 0) {
state = Accessible_getStateSet (cell);
Accessible_unref (cell);
@@ -1190,7 +1185,7 @@ check_row (Accessible *object, int row, int col, FILE *log_fp)
return LDTP_ERROR_SUCCESS;
}
AccessibleStateSet_unref (state);
- if (AccessibleAction_doAction (action, j) == FALSE) {
+ if (AccessibleAction_doAction (action, i) == FALSE) {
error = LDTP_ERROR_CHECK_ACTION_FAILED;
log_msg (LDTP_LOG_CAUSE, ldtp_error_get_message (error), log_fp);
return error;