[libdazzle] dockbin: check for neighbors before querying
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] dockbin: check for neighbors before querying
- Date: Mon, 7 Aug 2017 17:45:43 +0000 (UTC)
commit 3d621058d763f5635dcc2107680013b1a8bf34f1
Author: Christian Hergert <chergert redhat com>
Date: Mon Aug 7 10:45:33 2017 -0700
dockbin: check for neighbors before querying
We had additional protections at one point, but this is more clear now
that we already have a conditional.
src/panel/dzl-dock-bin.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/panel/dzl-dock-bin.c b/src/panel/dzl-dock-bin.c
index e1b47c7..1e771a4 100644
--- a/src/panel/dzl-dock-bin.c
+++ b/src/panel/dzl-dock-bin.c
@@ -851,7 +851,7 @@ dzl_dock_bin_child_size_allocate (DzlDockBin *self,
&child->min_req.width,
&child->nat_req.width);
- if (child->pinned)
+ if (child->pinned && n_children > 1)
{
dzl_dock_bin_get_children_preferred_height (self,
&children [1],
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]