
With our discussions being so lively :) perhaps something gets lost. A couple of my recent questions were not answered, so I'm not reposting them in the hope that they reach knowledgeable people who might have missed them the first time.
1. Regarding this bug:
http://sourceforge.net/tracker/index.php?func=detail&aid=860202&grou...
does anyone else think that document.cpp must store the absolute path already, i.e. instead of
document->uri = g_strdup (uri);
in sp_document_create we should have something like
document->uri = abs_path (uri, base);
That would fix the above bug. If so what standard function is there for creating an absolute path? I could not find one in glib.
2. I want to enable ctrl-click to select within group, but I don't see how it can be done. I've delved deep into the arena code and found that if a group is "transparent" then its members can be selected one by one. But how can I do that on ctrl-click? In select-context.c, the handler that checks what button/key was pressed seems to already get a selected item as an argument from the arena code. Will I have to analyze this preselected item on my own, or is there a more elegant way?
3. "Black magic": has anyone managed to reproduce this bug:
https://sourceforge.net/tracker/index.php?func=detail&aid=859364&gro...
and its "fix": add an empty g_print("") to line 204 of libnrtype/nr-rasterfont.c:
NRRectF * nr_rasterfont_generic_glyph_area_get (NRRasterFont *rf, unsigned int glyph, NRRectF *area) { NRRFGlyphSlot *slot;
glyph = CLAMP (glyph, 0, rf->nglyphs);
g_print(""); slot = nr_rasterfont_ensure_glyph_slot (rf, glyph, NR_RASTERFONT_BBOX_FLAG | NR_RASTERFONT_GMAP_FLAG);
If I don't hear from anyone I'm going to commit this fix anyway (with appropriate comments), because, at least, it will not break anything. A better solution would of course be welcome to replace that temporary fix.
_________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus&pgmarket=en-ca&RU=http%3a%2...

On Wed, 2003-12-17 at 19:58, bulia byak wrote:
With our discussions being so lively :) perhaps something gets lost. A couple of my recent questions were not answered, so I'm not reposting them in the hope that they reach knowledgeable people who might have missed them the first time.
I try to keep up with these things, but I have little time lately...
- I want to enable ctrl-click to select within group, but I don't see how
it can be done. I've delved deep into the arena code and found that if a group is "transparent" then its members can be selected one by one. But how can I do that on ctrl-click? In select-context.c, the handler that checks what button/key was pressed seems to already get a selected item as an argument from the arena code. Will I have to analyze this preselected item on my own, or is there a more elegant way?
This is something I'd like to work on personally, as part of the continuing layers work. I'm still trying to determine what a "clean" solution would be, though.
- "Black magic": has anyone managed to reproduce this bug:
https://sourceforge.net/tracker/index.php?func=detail&aid=859364&gro...
and its "fix": add an empty g_print("") to line 204 of libnrtype/nr-rasterfont.c:
NRRectF * nr_rasterfont_generic_glyph_area_get (NRRasterFont *rf, unsigned int glyph, NRRectF *area) { NRRFGlyphSlot *slot;
glyph = CLAMP (glyph, 0, rf->nglyphs);
g_print(""); slot = nr_rasterfont_ensure_glyph_slot (rf, glyph, NR_RASTERFONT_BBOX_FLAG | NR_RASTERFONT_GMAP_FLAG);
If I don't hear from anyone I'm going to commit this fix anyway (with appropriate comments), because, at least, it will not break anything. A better solution would of course be welcome to replace that temporary fix.
This sounds like a compiler bug. What version of g++ are you using? I've been unable to replicate the problem using g++ 3.3.2.
-mental
participants (2)
-
bulia byak
-
MenTaLguY