Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review 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
mantidproject
mantid
Commits
4e116881
Commit
4e116881
authored
10 years ago
by
Roman Tolchenov
Browse files
Options
Downloads
Patches
Plain Diff
Re #11406. Check for a null pointer.
parent
e7c4a60c
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/Mantid/MantidPlot/src/Mantid/MantidUI.cpp
+15
-12
15 additions, 12 deletions
Code/Mantid/MantidPlot/src/Mantid/MantidUI.cpp
with
15 additions
and
12 deletions
Code/Mantid/MantidPlot/src/Mantid/MantidUI.cpp
+
15
−
12
View file @
4e116881
...
@@ -2732,18 +2732,21 @@ void MantidUI::importNumSeriesLog(const QString &wsName, const QString &logName,
...
@@ -2732,18 +2732,21 @@ void MantidUI::importNumSeriesLog(const QString &wsName, const QString &logName,
if
(
filter
&&
flt
.
filter
())
if
(
filter
&&
flt
.
filter
())
{
{
QwtPlotCurve
*
c
=
g
->
curve
(
iFilterCurve
);
QwtPlotCurve
*
c
=
g
->
curve
(
iFilterCurve
);
// Set the right axis as Y axis for the filter curve.
if
(
c
)
c
->
setAxis
(
2
,
1
);
{
// Set style #3 (HorizontalSteps) for curve 1
// Set the right axis as Y axis for the filter curve.
// Set scale of right Y-axis (#3) from 0 to 1
c
->
setAxis
(
2
,
1
);
g
->
setCurveStyle
(
iFilterCurve
,
3
);
// Set style #3 (HorizontalSteps) for curve 1
g
->
setScale
(
3
,
0
,
1
);
// Set scale of right Y-axis (#3) from 0 to 1
// Fill area under the curve with a pattern
g
->
setCurveStyle
(
iFilterCurve
,
3
);
QBrush
br
=
QBrush
(
Qt
::
gray
,
Qt
::
Dense5Pattern
);
g
->
setScale
(
3
,
0
,
1
);
g
->
setCurveBrush
(
iFilterCurve
,
br
);
// Fill area under the curve with a pattern
// Set line colour
QBrush
br
=
QBrush
(
Qt
::
gray
,
Qt
::
Dense5Pattern
);
QPen
pn
=
QPen
(
Qt
::
gray
);
g
->
setCurveBrush
(
iFilterCurve
,
br
);
g
->
setCurvePen
(
iFilterCurve
,
pn
);
// Set line colour
QPen
pn
=
QPen
(
Qt
::
gray
);
g
->
setCurvePen
(
iFilterCurve
,
pn
);
}
}
}
g
->
setXAxisTitle
(
t
->
colLabel
(
0
));
g
->
setXAxisTitle
(
t
->
colLabel
(
0
));
g
->
setYAxisTitle
(
t
->
colLabel
(
1
).
section
(
"."
,
0
,
0
));
g
->
setYAxisTitle
(
t
->
colLabel
(
1
).
section
(
"."
,
0
,
0
));
...
...
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