[gnome-builder/gnome-builder-3-26] debugger: fix breakpoint comparison



commit 645408a4525e10da1913f40dd9d1b25f042cd704
Author: Christian Hergert <chergert redhat com>
Date:   Sun Sep 17 20:25:43 2017 -0700

    debugger: fix breakpoint comparison
    
    Fix comparison if breakpoints before they have been registered with the
    debugger session.

 libide/debugger/ide-debugger-breakpoint.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libide/debugger/ide-debugger-breakpoint.c b/libide/debugger/ide-debugger-breakpoint.c
index c55e232..674abd9 100644
--- a/libide/debugger/ide-debugger-breakpoint.c
+++ b/libide/debugger/ide-debugger-breakpoint.c
@@ -946,7 +946,7 @@ ide_debugger_breakpoint_compare (IdeDebuggerBreakpoint *a,
    * don't yet have an identifier.
    */
   if (priv_a->id == NULL && priv_b->id == NULL)
-    return FALSE;
+    return a - b;
 
   if (priv_a->id && priv_b->id)
     {


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