Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OpenFlipper
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenFlipper-Free
OpenFlipper
Merge requests
!114
Fixed crash on Histogram computation with no bins
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fixed crash on Histogram computation with no bins
Fix_histogram_crash
into
master
Overview
1
Commits
1
Pipelines
0
Changes
1
Merged
Jan Möbius
requested to merge
Fix_histogram_crash
into
master
6 years ago
Overview
1
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
55690527
1 commit,
6 years ago
1 file
+
2
−
1
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
libs_required/ACG/QtWidgets/QtHistogramWidget.cc
+
2
−
1
Options
@@ -78,7 +78,8 @@ void QtHistogramWidget::paintEvent(QPaintEvent *event) {
@@ -78,7 +78,8 @@ void QtHistogramWidget::paintEvent(QPaintEvent *event) {
const
std
::
vector
<
double
>
&
bin_widths
=
histogram_
->
getBinWidths
();
const
std
::
vector
<
double
>
&
bin_widths
=
histogram_
->
getBinWidths
();
const
double
total_width
=
histogram_
->
getTotalWidth
();
const
double
total_width
=
histogram_
->
getTotalWidth
();
const
size_t
hist_max
=
*
std
::
max_element
(
bins
.
begin
(),
bins
.
end
());
size_t
hist_max
=
bins
.
size
()
>
0
?
*
std
::
max_element
(
bins
.
begin
(),
bins
.
end
())
:
0
;
/*
/*
* Establish regions
* Establish regions
Loading