[gnome-builder] source-view: fix non-useful precondition
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] source-view: fix non-useful precondition
- Date: Tue, 19 Apr 2016 02:14:09 +0000 (UTC)
commit 9788556ac8148ff4a7746b95084abdd97d69ae62
Author: Christian Hergert <christian hergert me>
Date: Mon Apr 18 19:14:01 2016 -0700
source-view: fix non-useful precondition
libide/ide-source-view.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libide/ide-source-view.c b/libide/ide-source-view.c
index 39e23a2..ded4f01 100644
--- a/libide/ide-source-view.c
+++ b/libide/ide-source-view.c
@@ -7872,7 +7872,9 @@ ide_source_view_set_count (IdeSourceView *self,
IdeSourceViewPrivate *priv = ide_source_view_get_instance_private (self);
g_return_if_fail (IDE_IS_SOURCE_VIEW (self));
- g_return_if_fail (count <= G_MAXINT);
+
+ if (count < 0)
+ count = 0;
if (count != priv->count)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]