Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christian Butz
VTK
Commits
5cc5e766
Commit
5cc5e766
authored
Dec 22, 2005
by
David Cole
Browse files
BUG: Move OwnWindow assignment before the SetWindowName call so that the window name sticks...
parent
e40d8829
Changes
1
Hide whitespace changes
Inline
Side-by-side
Rendering/vtkCarbonRenderWindow.cxx
View file @
5cc5e766
...
...
@@ -28,7 +28,7 @@
#include
<math.h>
vtkCxxRevisionMacro
(
vtkCarbonRenderWindow
,
"1.4
1
"
);
vtkCxxRevisionMacro
(
vtkCarbonRenderWindow
,
"1.4
2
"
);
vtkStandardNewMacro
(
vtkCarbonRenderWindow
);
//----------------------------------------------------------------------------
...
...
@@ -778,20 +778,20 @@ void vtkCarbonRenderWindow::CreateAWindow(int vtkNotUsed(x), int vtkNotUsed(y),
vtkErrorMacro
(
"Could not create window, serious error!"
);
return
;
}
// get the content view
HIViewFindByID
(
HIViewGetRoot
(
this
->
RootWindow
),
kHIViewWindowContentID
,
&
this
->
WindowId
);
int
len
=
(
strlen
(
"
vtkX
- Carbon #"
)
int
len
=
(
strlen
(
"
Visualization Toolkit
- Carbon #"
)
+
(
int
)
ceil
((
double
)
log10
((
double
)(
count
+
1
)))
+
1
);
windowName
=
new
char
[
len
];
sprintf
(
windowName
,
"vtkX - Carbon #%i"
,
count
++
);
sprintf
(
windowName
,
"Visualization Toolkit - Carbon #%i"
,
count
++
);
this
->
OwnWindow
=
1
;
this
->
SetWindowName
(
windowName
);
delete
[]
windowName
;
this
->
OwnWindow
=
1
;
ShowWindow
(
this
->
RootWindow
);
}
...
...
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