summaryrefslogtreecommitdiffstats
path: root/lib/redmine/helpers
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-08-12 04:21:32 +0000
committerGo MAEDA <maeda@farend.jp>2020-08-12 04:21:32 +0000
commit1712ff07857b7a014833820c442078bd368e46ec (patch)
treee8e4feb58a41b9e8722f9185210e49329aec657a /lib/redmine/helpers
parenta7b9fa99966e8d59bd88548248ab11400ea48e5e (diff)
downloadredmine-1712ff07857b7a014833820c442078bd368e46ec.tar.gz
redmine-1712ff07857b7a014833820c442078bd368e46ec.zip
Starting or ending marker is not displayed if they are on the leftmost or rightmost boundary of the gantt (#33175).
Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@19976 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/helpers')
-rw-r--r--lib/redmine/helpers/gantt.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb
index 7aba9b7e2..31956bfae 100644
--- a/lib/redmine/helpers/gantt.rb
+++ b/lib/redmine/helpers/gantt.rb
@@ -615,13 +615,13 @@ module Redmine
zoom ||= @zoom
coords = {}
if start_date && end_date && start_date <= self.date_to && end_date >= self.date_from
- if start_date > self.date_from
+ if start_date >= self.date_from
coords[:start] = start_date - self.date_from
coords[:bar_start] = start_date - self.date_from
else
coords[:bar_start] = 0
end
- if end_date < self.date_to
+ if end_date <= self.date_to
coords[:end] = end_date - self.date_from + 1
coords[:bar_end] = end_date - self.date_from + 1
else