Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
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
Model registry
Operate
Environments
Monitor
Incidents
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
Larry Price
gmsh
Commits
ab96672a
Commit
ab96672a
authored
15 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
fix crash when deleting views in some cases when we have aliases of aliases (old bug)
parent
bc71e3c3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Post/PView.cpp
+9
-1
9 additions, 1 deletion
Post/PView.cpp
with
9 additions
and
1 deletion
Post/PView.cpp
+
9
−
1
View file @
ab96672a
...
@@ -58,7 +58,15 @@ PView::PView(PViewData *data, int num)
...
@@ -58,7 +58,15 @@ PView::PView(PViewData *data, int num)
PView
::
PView
(
PView
*
ref
,
bool
copyOptions
)
PView
::
PView
(
PView
*
ref
,
bool
copyOptions
)
{
{
_init
();
_init
();
_aliasOf
=
ref
->
getNum
();
if
(
ref
->
getAliasOf
()){
// alias of an alias
PView
*
orig
=
getViewByNum
(
ref
->
getAliasOf
());
if
(
orig
)
_aliasOf
=
orig
->
getNum
();
else
Msg
::
Error
(
"Could not find original view for alias"
);
}
else
_aliasOf
=
ref
->
getNum
();
_data
=
ref
->
getData
();
_data
=
ref
->
getData
();
if
(
copyOptions
)
if
(
copyOptions
)
_options
=
new
PViewOptions
(
*
ref
->
getOptions
());
_options
=
new
PViewOptions
(
*
ref
->
getOptions
());
...
...
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