more bug fixes
Martin Hosken <[email protected]>
| Newsgroups | gmane.comp.fonts.fontforge.devel |
|---|---|
| Message-ID | <20131014173555.76cf35c2@sil-mh6> |
Dear All,
Oops, a missing hunk from previous patches for fixing python.c:
diff --git a/fontforge/python.c b/fontforge/python.c
index 10201ae..2b4c500 100644
--- a/fontforge/python.c
+++ b/fontforge/python.c
@@ -2929,7 +2929,7 @@ return( NULL );
points = freeme = galloc(self->pt_cnt*sizeof(struct PyFF_Point *));
for ( i=start; i<self->pt_cnt; ++i )
points[i-start] = self->points[i];
- off = i;
+ off = self->pt_cnt - start;
for ( i=0; i<start; ++i )
points[i+off] = self->points[i];
}
More noise reduction. BTW if we want this kind of thing, how about a --verbose flag?
diff --git a/fontforge/pythonui.c b/fontforge/pythonui.c
index cea2fbe..5cb0881 100644
--- a/fontforge/pythonui.c
+++ b/fontforge/pythonui.c
@@ -603,8 +603,8 @@ copyUIMethodsToBaseTable( PyMethodDef* ui, PyMethodDef* md )
void PythonUI_Init(void) {
- if (!quiet)
- printf("PythonUI_Init()\n");
+ /* if (!quiet)
+ printf("PythonUI_Init()\n"); */
FfPy_Replace_MenuItemStub(PyFF_registerMenuItem);
set_pyFF_maybeCallCVPreserveState_Func( pyFF_maybeCallCVPreserveState );
set_pyFF_sendRedoIfInSession_Func( pyFF_sendRedoIfInSession_Func_Real );
Fix a bug when loading Layer names. Half undo a previous commit which I am unsure as to why it was done.
diff --git a/fontforge/sfd.c b/fontforge/sfd.c
index 220d937..aaafbe7 100644
--- a/fontforge/sfd.c
+++ b/fontforge/sfd.c
@@ -441,11 +441,11 @@ return( NULL );
done = true;
}
}
- if ( pt && pt+10>=end ) {
+ if ( pt+10>=end ) {
if ( buffer==NULL ) {
pt = buffer = galloc(400);
end = buffer+400;
- } else {
+ } else if (pt) {
char *temp = grealloc(buffer,end-buffer+400);
pt = temp+(pt-buffer);
end = temp+(end-buffer+400);
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk