Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
PIM EventViews
Commits
628dc715
Commit
628dc715
authored
Dec 12, 2020
by
Laurent Montel
Browse files
Merge remote-tracking branch 'origin/release/20.12'
parents
16a141fb
710794ae
Pipeline
#43859
passed with stage
in 12 minutes and 40 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/agenda/agendaview.cpp
View file @
628dc715
...
...
@@ -572,7 +572,7 @@ void AgendaView::Private::insertIncidence(const KCalendarCore::Incidence::Ptr &i
if
(
event
)
{
const
QDate
firstVisibleDate
=
mSelectedDates
.
first
();
// its crossing bounderies, lets calculate beginX and endX
const
int
duration
=
event
->
dtStart
().
toLocalTime
().
daysTo
(
event
->
dtEnd
());
const
int
duration
=
event
->
dtStart
().
toLocalTime
().
daysTo
(
event
->
dtEnd
()
.
toLocalTime
()
);
if
(
insertAtDate
<
firstVisibleDate
)
{
beginX
=
curCol
+
firstVisibleDate
.
daysTo
(
insertAtDate
);
endX
=
beginX
+
duration
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment