summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6c718b5)
raw | patch | inline | side by side (parent: 6c718b5)
author | ishmal <ishmal@users.sourceforge.net> | |
Sun, 4 May 2008 17:05:26 +0000 (17:05 +0000) | ||
committer | ishmal <ishmal@users.sourceforge.net> | |
Sun, 4 May 2008 17:05:26 +0000 (17:05 +0000) |
index f813a03c9add89c90afcc9949cc880a3dc2261fe..933c7850d35c046fbe0ddca78b4c6c7419eae871 100644 (file)
static GtkType type = 0;
if (!type) {
GtkTypeInfo info = {
- "SPCanvasArena",
+ (gchar *)"SPCanvasArena",
sizeof (SPCanvasArena),
sizeof (SPCanvasArenaClass),
(GtkClassInitFunc) sp_canvas_arena_class_init,
index 8fecb4e3d756a5d922d3982f9ccb86e15f2b6a6e..ed317722cfac51283f888c7af560f4982f249149 100644 (file)
static GtkType type = 0;
if (!type) {
GtkTypeInfo info = {
- "SPCanvasBPath",
+ (gchar *)"SPCanvasBPath",
sizeof (SPCanvasBPath),
sizeof (SPCanvasBPathClass),
(GtkClassInitFunc) sp_canvas_bpath_class_init,
index 7aebe0095181fd80632c88f4adfac28d279bed1b..83eed0772e4564bb94ce06530cc4af0cd4f67648 100644 (file)
if (!grid_canvasitem_type) {
GtkTypeInfo grid_canvasitem_info = {
- "GridCanvasItem",
+ (gchar *)"GridCanvasItem",
sizeof (GridCanvasItem),
sizeof (GridCanvasItemClass),
(GtkClassInitFunc) grid_canvasitem_class_init,
index b4fa5523a28a01150b4097d9c3674952f0b91bb1..ee6834075ab1156b4aa032639748488a5cfb2eb9 100644 (file)
static GtkType acetate_type = 0;
if (!acetate_type) {
GtkTypeInfo acetate_info = {
- "SPCanvasAcetate",
+ (gchar *)"SPCanvasAcetate",
sizeof (SPCanvasAcetate),
sizeof (SPCanvasAcetateClass),
(GtkClassInitFunc) sp_canvas_acetate_class_init,
diff --git a/src/display/nr-filter-component-transfer.cpp b/src/display/nr-filter-component-transfer.cpp
index a81d8f53ab7b41a08507d65203f1a9be9c46bd6b..f4749de825f25b9a05c91c3ad0190c070f8174a7 100644 (file)
@@ -116,6 +116,9 @@ int FilterComponentTransfer::render(FilterSlot &slot, FilterUnits const &/*units
out_data[i] = CLAMP_D_TO_U8(256 * (_amplitude * pow((double)in_data[i]/256, _exponent) + _offset));
}
break;
+ case COMPONENTTRANSFER_TYPE_ERROR:
+ //TODO: report an error here
+ break;
}
}
index 1eeb3e8c60343a022a299cf29e742c59670b4eed..086e4114d288b3bdfc3d4364e219567991a773cd 100644 (file)
int FilterImage::render(FilterSlot &slot, FilterUnits const &units) {
if (!feImageHref) return 0;
- NRPixBlock* pb;
+ NRPixBlock* pb = NULL;
bool free_pb_on_exit = false;
if(from_element){
index 04d22cdc5ec8b4461cd23de10eabe13fd50440d4..d45f6e916ca5fb4eaddab38329420fae4e0aacac 100644 (file)
FilterSkeleton::~FilterSkeleton()
{}
-int FilterSkeleton::render(FilterSlot &slot, FilterUnits const &units) {
- NRPixBlock *in = slot.get(_input);
- NRPixBlock *out;
+int FilterSkeleton::render(FilterSlot &slot,
+ FilterUnits const &/*units*/) {
+ //NRPixBlock *in = slot.get(_input);
+ NRPixBlock *out = new NRPixBlock();
/* Insert rendering code here */