Commit 8b356af8 authored by Arthur D.'s avatar Arthur D.
Browse files

Fix possible overlapping checkboxes with links

The bug occurred when clicking on a checkbox and having a link at the
beginning of the note.
parent a0c6633c
Loading
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -142,6 +142,9 @@ namespace Xnp {
			if (start.get_offset () != end.get_offset ())
				return false;

			if (this.cursor_over_checkbox)
				return false;

			window_to_buffer_coords (Gtk.TextWindowType.WIDGET, (int)event.x, (int)event.y, out x, out y);
			get_iter_at_location (out iter, x, y);