summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/arc-toolbar.cpp13
-rw-r--r--src/widgets/sp-widget.cpp2
2 files changed, 7 insertions, 8 deletions
diff --git a/src/widgets/arc-toolbar.cpp b/src/widgets/arc-toolbar.cpp
index c31c61e32..5569780e7 100644
--- a/src/widgets/arc-toolbar.cpp
+++ b/src/widgets/arc-toolbar.cpp
@@ -112,10 +112,9 @@ sp_arctb_startend_value_changed(GtkAdjustment *adj, GObject *tbl, gchar const *v
{
SPItem *item = SP_ITEM(items->data);
- if (SP_IS_ARC(item) && SP_IS_GENERICELLIPSE(item)) {
+ if (SP_IS_GENERICELLIPSE(item)) {
SPGenericEllipse *ge = SP_GENERICELLIPSE(item);
- SPArc *arc = SP_ARC(item);
if (!strcmp(value_name, "start")) {
ge->start = (gtk_adjustment_get_value(adj) * M_PI)/ 180;
@@ -124,8 +123,8 @@ sp_arctb_startend_value_changed(GtkAdjustment *adj, GObject *tbl, gchar const *v
}
ge->normalize();
- (SP_OBJECT(arc))->updateRepr();
- (SP_OBJECT(arc))->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG);
+ (SP_OBJECT(ge))->updateRepr();
+ (SP_OBJECT(ge))->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG);
modmade = true;
}
@@ -181,7 +180,7 @@ static void sp_arctb_open_state_changed( EgeSelectOneAction *act, GObject *tbl )
items = items->next)
{
SPItem *item = reinterpret_cast<SPItem*>(items->data);
- if (SP_IS_ARC(item)) {
+ if (SP_IS_GENERICELLIPSE(item)) {
Inkscape::XML::Node *repr = item->getRepr();
repr->setAttribute("sodipodi:open", "true");
item->updateRepr();
@@ -194,7 +193,7 @@ static void sp_arctb_open_state_changed( EgeSelectOneAction *act, GObject *tbl )
items = items->next)
{
SPItem *item = reinterpret_cast<SPItem *>(items->data);
- if (SP_IS_ARC(item)) {
+ if (SP_IS_GENERICELLIPSE(item)) {
Inkscape::XML::Node *repr = item->getRepr();
repr->setAttribute("sodipodi:open", NULL);
item->updateRepr();
@@ -286,7 +285,7 @@ static void sp_arc_toolbox_selection_changed(Inkscape::Selection *selection, GOb
items = items->next)
{
SPItem *item = reinterpret_cast<SPItem *>(items->data);
- if (SP_IS_ARC(item)) {
+ if (SP_IS_GENERICELLIPSE(item)) {
n_selected++;
repr = item->getRepr();
}
diff --git a/src/widgets/sp-widget.cpp b/src/widgets/sp-widget.cpp
index 7876f0454..0e2295e36 100644
--- a/src/widgets/sp-widget.cpp
+++ b/src/widgets/sp-widget.cpp
@@ -183,7 +183,7 @@ void SPWidgetImpl::dispose(GObject *object)
if (spw->inkscape) {
// Disconnect signals
- // the checks are necessary because when destroy is caused by the the program shutting down,
+ // the checks are necessary because when destroy is caused by the program shutting down,
// the inkscape object may already be (partly?) invalid --bb
if (G_IS_OBJECT(spw->inkscape) && G_OBJECT_GET_CLASS(spw->inkscape)) {
sp_signal_disconnect_by_data(spw->inkscape, spw);