Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
KPhotoAlbum
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Graphics
KPhotoAlbum
Commits
9bc2650c
Commit
9bc2650c
authored
Sep 14, 2020
by
Johannes Zarl-Zierl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DateBarWidget: fix assertion.
BUG: 426538
parent
009a4356
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
DateBar/DateBarWidget.cpp
DateBar/DateBarWidget.cpp
+1
-1
DateBar/DateBarWidget.h
DateBar/DateBarWidget.h
+1
-1
No files found.
DateBar/DateBarWidget.cpp
View file @
9bc2650c
...
...
@@ -832,7 +832,7 @@ void DateBar::DateBarWidget::focusOutEvent(QFocusEvent *)
int
DateBar
::
DateBarWidget
::
unitAtPos
(
int
x
)
const
{
Q_ASSERT_X
(
x
-
barAreaGeometry
().
left
()
>=
0
,
"DateBarWidget::unitAtPos"
,
"horizontal offset cannot be negative!"
);
Q_ASSERT_X
(
x
-
barAreaGeometry
().
left
()
<=
m_barWidth
,
"DateBarWidget::unitAtPos"
,
"horizontal offset larger than m_barW
idth!"
);
Q_ASSERT_X
(
x
-
barAreaGeometry
().
left
()
<=
barAreaGeometry
().
width
(),
"DateBarWidget::unitAtPos"
,
"horizontal offset larger than total w
idth!"
);
return
(
x
-
barAreaGeometry
().
left
())
/
m_barWidth
;
}
...
...
DateBar/DateBarWidget.h
View file @
9bc2650c
...
...
@@ -221,7 +221,7 @@ private:
int
m_currentUnit
;
QDateTime
m_currentDate
;
int
m_barWidth
;
int
m_barWidth
;
///< width of a single unit in pixel
int
m_barHeight
;
bool
m_includeFuzzyCounts
;
QMenu
*
m_contextMenu
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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