aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index eddc0e623..9a41bab09 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -303,7 +303,7 @@ int Editor::TopLineOfMain() const {
}
PRectangle Editor::GetClientRectangle() const {
- Window &win = const_cast<Window &>(wMain);
+ Window win = wMain;
return win.GetClientPosition();
}