summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog
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
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')
-rw-r--r--src/ui/dialog/document-metadata.cpp2
-rw-r--r--src/ui/dialog/extension-editor.cpp2
2 files changed, 2 insertions, 2 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);
diff --git a/src/ui/dialog/extension-editor.cpp b/src/ui/dialog/extension-editor.cpp
index 7df2eaee5..5f6386046 100644
--- a/src/ui/dialog/extension-editor.cpp
+++ b/src/ui/dialog/extension-editor.cpp
@@ -191,7 +191,7 @@ ExtensionEditor::on_pagelist_selection_changed (void)
void
ExtensionEditor::dbfunc (Inkscape::Extension::Extension * in_plug, gpointer in_data)
{
- ExtensionEditor * ee = reinterpret_cast<ExtensionEditor *>(in_data);
+ ExtensionEditor * ee = static_cast<ExtensionEditor *>(in_data);
ee->add_extension(in_plug);
return;
}