Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
7fd0839b
Commit
7fd0839b
authored
1 year ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
get masks from gDoc
parent
3c6bdbed
No related branches found
No related tags found
1 merge request
!2420
mask item owned by detector instead of data
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
GUI/View/Canvas/MaskEditorCanvas.cpp
+5
-3
5 additions, 3 deletions
GUI/View/Canvas/MaskEditorCanvas.cpp
with
5 additions
and
3 deletions
GUI/View/Canvas/MaskEditorCanvas.cpp
+
5
−
3
View file @
7fd0839b
...
...
@@ -15,6 +15,7 @@
#include
"GUI/View/Canvas/MaskEditorCanvas.h"
#include
"Device/Data/Datafield.h"
#include
"GUI/Model/Data/Data2DItem.h"
#include
"GUI/Model/Device/InstrumentsSet.h"
#include
"GUI/Model/Mask/MasksSet.h"
#include
"GUI/Model/Project/ProjectDocument.h"
#include
"GUI/View/Canvas/SavePlotAssistant.h"
...
...
@@ -117,9 +118,10 @@ void MaskEditorCanvas::onPresentationChange(bool pixelized)
m_data_item
->
setInterpolated
(
m_backup_interpolated
);
}
if
(
auto
*
container
=
m_data_item
->
masksSet
())
for
(
MaskItem
*
t
:
*
container
)
t
->
setIsVisible
(
!
pixelized
&&
t
->
wasVisible
());
if
(
const
InstrumentItem
*
ii
=
gDoc
->
instruments
()
->
currentItem
())
if
(
const
MasksSet
*
s
=
ii
->
masks
())
for
(
MaskItem
*
t
:
*
s
)
t
->
setIsVisible
(
!
pixelized
&&
t
->
wasVisible
());
}
//! Saves plot into project directory.
...
...
This diff is collapsed.
Click to expand it.
Wuttke, Joachim
@j.wuttke
mentioned in commit
b1cc44df
·
1 year ago
mentioned in commit
b1cc44df
mentioned in commit b1cc44df08533f7d193e83139684c612e16c64a6
Toggle commit list
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