[evolution] EHTMLEditorView - Return right value from selection_is_in_table when no parameters are passed



commit 6e2535bf4a08c91011fa3b0736362e82cf2a8bae
Author: Tomas Popela <tpopela redhat com>
Date:   Wed Mar 11 10:45:21 2015 +0100

    EHTMLEditorView - Return right value from selection_is_in_table when no parameters are passed

 e-util/e-html-editor-view.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index a35aeb6..133ebff 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -3156,11 +3156,14 @@ selection_is_in_table (WebKitDOMDocument *document,
                                                                *first_cell = TRUE;
                                        }
                                }
-                       }
+                       } else
+                               return TRUE;
                }
                if (WEBKIT_DOM_IS_HTML_TABLE_ELEMENT (parent)) {
                        if (table_node != NULL)
                                *table_node = parent;
+                       else
+                               return TRUE;
                }
                parent = webkit_dom_node_get_parent_node (parent);
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]