summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/document-metadata.cpp
diff options
context:
space:
mode:
authorKees Cook <kees@outflux.net>2007-01-13 01:17:19 +0000
committerkeescook <keescook@users.sourceforge.net>2007-01-13 01:17:19 +0000
commit8af10d54e7256d8db1b7a92370c857544bbfdf9f (patch)
treeccd090b01bc732b834df0efa33b65bc67932a616 /src/ui/dialog/document-metadata.cpp
parentFixed bug where offset was not written to XML when stop was added. (diff)
downloadinkscape-8af10d54e7256d8db1b7a92370c857544bbfdf9f.tar.gz
inkscape-8af10d54e7256d8db1b7a92370c857544bbfdf9f.zip
overwritten heap, wrong casts fixed. Closes SF#1575829
(bzr r2198)
Diffstat (limited to 'src/ui/dialog/document-metadata.cpp')
-rw-r--r--src/ui/dialog/document-metadata.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/dialog/document-metadata.cpp b/src/ui/dialog/document-metadata.cpp
index 7c845e70f..a3e87b31b 100644
--- a/src/ui/dialog/document-metadata.cpp
+++ b/src/ui/dialog/document-metadata.cpp
@@ -156,7 +156,7 @@ attach_all (Gtk::Table &table, const Gtk::Widget *arr[], unsigned size, int star
Gtk::FILL|Gtk::EXPAND, (Gtk::AttachOptions)0,0,0);
else if (arr[i])
{
- Gtk::Label& label = reinterpret_cast<Gtk::Label&> (const_cast<Gtk::Widget&>(*arr[i]));
+ Gtk::Label& label = static_cast<Gtk::Label&> (const_cast<Gtk::Widget&>(*arr[i]));
label.set_alignment (0.0);
table.attach (label, 0, 3, r, r+1,
Gtk::FILL|Gtk::EXPAND, (Gtk::AttachOptions)0,0,0);