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
227bfff0
Commit
227bfff0
authored
8 months ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
manual fix
parent
58a402ee
No related branches found
No related tags found
1 merge request
!2655
further compactification of writeTo
Pipeline
#150633
passed
8 months ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
GUI/Model/Beam/SourceItems.cpp
+4
-10
4 additions, 10 deletions
GUI/Model/Beam/SourceItems.cpp
with
4 additions
and
10 deletions
GUI/Model/Beam/SourceItems.cpp
+
4
−
10
View file @
227bfff0
...
@@ -262,20 +262,14 @@ void ScanItem::readFrom(QXmlStreamReader* r)
...
@@ -262,20 +262,14 @@ void ScanItem::readFrom(QXmlStreamReader* r)
while
(
r
->
readNextStartElement
())
{
while
(
r
->
readNextStartElement
())
{
QString
tag
=
r
->
name
().
toString
();
QString
tag
=
r
->
name
().
toString
();
if
(
tag
==
Tag
::
BaseData
)
{
if
(
tag
==
Tag
::
BaseData
)
SourceItem
::
readFrom
(
r
);
XML
::
readBaseElement
<
SourceItem
>
(
r
,
this
);
XML
::
gotoEndElementOfTag
(
r
,
tag
);
else
if
(
version
==
1
&&
tag
==
Tag
::
Footprint
)
// footprint (moved to base class since v21 (version == 2))
}
else
if
(
version
==
1
&&
tag
==
Tag
::
Footprint
)
{
XML
::
readTaggedElement
(
r
,
tag
,
m_footprint
);
XML
::
readTaggedElement
(
r
,
tag
,
m_footprint
);
else
if
(
version
==
1
&&
tag
==
Tag
::
ExpandFootprintGroupbox
)
// footprint groupbox: is expanded? (moved to base class since v21 (version == 2))
}
else
if
(
version
==
1
&&
tag
==
Tag
::
ExpandFootprintGroupbox
)
expandFootprint
=
XML
::
readTaggedBool
(
r
,
tag
);
expandFootprint
=
XML
::
readTaggedBool
(
r
,
tag
);
else
if
(
tag
==
Tag
::
GrazingScan
)
else
if
(
tag
==
Tag
::
GrazingScan
)
XML
::
readTaggedElement
(
r
,
tag
,
*
m_grazing_scan_item
);
XML
::
readTaggedElement
(
r
,
tag
,
*
m_grazing_scan_item
);
else
else
r
->
skipCurrentElement
();
r
->
skipCurrentElement
();
}
}
...
...
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