Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSato Hiroyuki <sathiroyuki@gmail.com>2013-04-25 16:53:30 +0400
committerSato Hiroyuki <sathiroyuki@gmail.com>2013-04-26 00:53:40 +0400
commitb36b40ca40c1a380e74ac5384ef40938323307a8 (patch)
treee3ce931083efa81bb34bfadd8bb8146d6ae2d7eb /app/models/network
parent85c468ec480a1541de36da07fc5fb4ca73c9ad5e (diff)
Fix minor bug about line overlap.
Diffstat (limited to 'app/models/network')
-rw-r--r--app/models/network/graph.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/network/graph.rb b/app/models/network/graph.rb
index ea7d188cc38..27072836cbb 100644
--- a/app/models/network/graph.rb
+++ b/app/models/network/graph.rb
@@ -190,7 +190,7 @@ module Network
l.spaces << space
# Also add space to parent
l.parents(@map).each do |parent|
- if parent.space > 0
+ if 0 < parent.space && parent.space < space
parent.spaces << space
end
end