[gnome-builder] completion: fix negative offset handling
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] completion: fix negative offset handling
- Date: Sat, 9 Jun 2018 10:31:51 +0000 (UTC)
commit 915a94b5fdf9be9122c9b30a69eacbc9d4afefda
Author: Christian Hergert <chergert redhat com>
Date: Sat Jun 9 03:31:08 2018 -0700
completion: fix negative offset handling
src/libide/completion/ide-completion-overlay.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/libide/completion/ide-completion-overlay.c b/src/libide/completion/ide-completion-overlay.c
index 430cf2bf8..8a0d9b76d 100644
--- a/src/libide/completion/ide-completion-overlay.c
+++ b/src/libide/completion/ide-completion-overlay.c
@@ -210,7 +210,8 @@ ide_completion_overlay_get_child_position_cb (IdeCompletionOverlay *self,
if (out_rect->x < 0)
{
out_rect->x = 0;
- out_rect->width = alloc.width;
+ if (out_rect->width > alloc.width)
+ out_rect->width = alloc.width;
}
if (out_rect->y + out_rect->height > alloc.height)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]