summaryrefslogtreecommitdiffstats
path: root/src/sp-fedistantlight.cpp
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2007-11-04 07:22:23 +0000
committerjoncruz <joncruz@users.sourceforge.net>2007-11-04 07:22:23 +0000
commit220136e32a951dffe05ab4c3a117d67f4540680c (patch)
tree00738e1584136c324f4424957f264f10840fbd40 /src/sp-fedistantlight.cpp
parentAdd virtual to a lot of the destructors. Note: perhaps it will have to be rev... (diff)
downloadinkscape-220136e32a951dffe05ab4c3a117d67f4540680c.tar.gz
inkscape-220136e32a951dffe05ab4c3a117d67f4540680c.zip
Warning cleanup
(bzr r4025)
Diffstat (limited to '')
-rw-r--r--src/sp-fedistantlight.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/sp-fedistantlight.cpp b/src/sp-fedistantlight.cpp
index a878e1ad7..7125b50ab 100644
--- a/src/sp-fedistantlight.cpp
+++ b/src/sp-fedistantlight.cpp
@@ -170,7 +170,7 @@ sp_fedistantlight_set(SPObject *object, unsigned int key, gchar const *value)
}
break;
default:
- // See if any parents need this value.
+ // See if any parents need this value.
if (((SPObjectClass *) feDistantLight_parent_class)->set) {
((SPObjectClass *) feDistantLight_parent_class)->set(object, key, value);
}
@@ -185,13 +185,14 @@ static void
sp_fedistantlight_update(SPObject *object, SPCtx *ctx, guint flags)
{
SPFeDistantLight *feDistantLight = SP_FEDISTANTLIGHT(object);
+ (void)feDistantLight;
if (flags & SP_OBJECT_MODIFIED_FLAG) {
/* do something to trigger redisplay, updates? */
sp_object_read_attr(object, "azimuth");
sp_object_read_attr(object, "elevation");
}
-
+
if (((SPObjectClass *) feDistantLight_parent_class)->update) {
((SPObjectClass *) feDistantLight_parent_class)->update(object, ctx, flags);
}
@@ -208,12 +209,12 @@ sp_fedistantlight_write(SPObject *object, Inkscape::XML::Node *repr, guint flags
if (!repr) {
repr = SP_OBJECT_REPR(object)->duplicate(NULL); // FIXME
}
-
+
if (fedistantlight->azimuth_set)
sp_repr_set_css_double(repr, "azimuth", fedistantlight->azimuth);
if (fedistantlight->elevation_set)
sp_repr_set_css_double(repr, "elevation", fedistantlight->elevation);
-
+
if (((SPObjectClass *) feDistantLight_parent_class)->write) {
((SPObjectClass *) feDistantLight_parent_class)->write(object, repr, flags);
}