Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
KDevPlatform
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Unmaintained
KDevPlatform
Commits
9705124a
Commit
9705124a
authored
13 years ago
by
Milian Wolff
Browse files
Options
Downloads
Patches
Plain Diff
prevent assert in outdated annotation line
TODO: needs a proper fix CCBUG: 269757
parent
88b02d3f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vcs/models/vcsannotationmodel.cpp
+6
-0
6 additions, 0 deletions
vcs/models/vcsannotationmodel.cpp
with
6 additions
and
0 deletions
vcs/models/vcsannotationmodel.cpp
+
6
−
0
View file @
9705124a
...
...
@@ -109,6 +109,12 @@ QVariant VcsAnnotationModel::data( int line, Qt::ItemDataRole role ) const
VcsRevision
VcsAnnotationModel
::
revisionForLine
(
int
line
)
const
{
///FIXME: update the annotation bar on edit/reload somehow
///BUG: https://bugs.kde.org/show_bug.cgi?id=269757
if
(
!
d
->
m_annotation
.
containsLine
())
{
return
VcsRevision
();
}
Q_ASSERT
(
line
>
0
&&
d
->
m_annotation
.
containsLine
(
line
));
return
d
->
m_annotation
.
line
(
line
).
revision
();
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment