[gnote] Fix toggle bullets with menu



commit ad76c9e8b68ecdea9a13faf472f3553e7242cc3d
Author: Aurimas Ä?ernius <aurisc4 gmail com>
Date:   Sat Oct 16 22:01:37 2010 +0300

    Fix toggle bullets with menu
    
    Using toggle bullets menu item turns them on, but doesn't turn
    them off.

 src/notebuffer.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/notebuffer.cpp b/src/notebuffer.cpp
index 6ef594f..81f802c 100644
--- a/src/notebuffer.cpp
+++ b/src/notebuffer.cpp
@@ -862,7 +862,7 @@ namespace gnote {
       if (toggle_on && !find_depth_tag(curr_line)) {
         increase_depth(curr_line);
       } 
-      else if (!toggle_on && !find_depth_tag(curr_line)) {
+      else if (!toggle_on && find_depth_tag(curr_line)) {
         Gtk::TextIter bullet_end = get_iter_at_line_offset(curr_line.get_line(), 2);
         erase(curr_line, bullet_end);
       }



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