Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
dd0cca2c
Commit
dd0cca2c
authored
Sep 22, 2020
by
Mathieu Tillet
Browse files
Fix sector copy constructor
parent
b4d0543e
Changes
1
Hide whitespace changes
Inline
Side-by-side
qt/widgets/instrumentview/src/Shape2D.cpp
View file @
dd0cca2c
...
...
@@ -636,10 +636,13 @@ Shape2DSector::Shape2DSector(double innerRadius, double outerRadius,
resetBoundingRect
();
}
Shape2DSector
::
Shape2DSector
(
const
Shape2DSector
&
sector
)
{
Shape2DSector
(
sector
.
m_innerRadius
,
sector
.
m_outerRadius
,
sector
.
m_startAngle
,
sector
.
m_endAngle
,
sector
.
m_center
);
Shape2DSector
::
Shape2DSector
(
const
Shape2DSector
&
sector
)
:
Shape2D
(),
m_innerRadius
(
sector
.
m_innerRadius
),
m_outerRadius
(
sector
.
m_outerRadius
),
m_startAngle
(
sector
.
m_startAngle
),
m_endAngle
(
sector
.
m_endAngle
),
m_center
(
sector
.
m_center
)
{
resetBoundingRect
();
}
/**
* @brief Shape2DSector::selectAt
* Checks if the sector can be selected at a given point
...
...
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