diff options
| author | Kees Cook <kees@outflux.net> | 2007-01-13 01:17:19 +0000 |
|---|---|---|
| committer | keescook <keescook@users.sourceforge.net> | 2007-01-13 01:17:19 +0000 |
| commit | 8af10d54e7256d8db1b7a92370c857544bbfdf9f (patch) | |
| tree | ccd090b01bc732b834df0efa33b65bc67932a616 /src/ui/widget/licensor.cpp | |
| parent | Fixed bug where offset was not written to XML when stop was added. (diff) | |
| download | inkscape-8af10d54e7256d8db1b7a92370c857544bbfdf9f.tar.gz inkscape-8af10d54e7256d8db1b7a92370c857544bbfdf9f.zip | |
overwritten heap, wrong casts fixed. Closes SF#1575829
(bzr r2198)
Diffstat (limited to 'src/ui/widget/licensor.cpp')
| -rw-r--r-- | src/ui/widget/licensor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/widget/licensor.cpp b/src/ui/widget/licensor.cpp index c872c06df..24bd5595f 100644 --- a/src/ui/widget/licensor.cpp +++ b/src/ui/widget/licensor.cpp @@ -67,7 +67,7 @@ LicenseItem::on_toggled() sp_document_done (SP_ACTIVE_DOCUMENT, SP_VERB_NONE, /* TODO: annotate */ "licensor.cpp:65"); _wr.setUpdating (false); - reinterpret_cast<Gtk::Entry*>(_eep->_packable)->set_text (_lic->uri); + static_cast<Gtk::Entry*>(_eep->_packable)->set_text (_lic->uri); _eep->on_changed(); } @@ -129,10 +129,10 @@ Licensor::update (SPDocument *doc) for (i=0; rdf_licenses[i].name; i++) if (license == &rdf_licenses[i]) break; - reinterpret_cast<LicenseItem*>(children()[i+1].get_widget())->set_active(); + static_cast<LicenseItem*>(children()[i+1].get_widget())->set_active(); } else { - reinterpret_cast<LicenseItem*>(children()[0].get_widget())->set_active(); + static_cast<LicenseItem*>(children()[0].get_widget())->set_active(); } /* update the URI */ |
