From 8f60ac2e3ba9f28577bf80c17ba3277ef8d306aa Mon Sep 17 00:00:00 2001 From: Alvin Penner Date: Mon, 7 Mar 2011 20:25:37 -0500 Subject: emf import. remove numerical id's (Bug 552351) Fixed bugs: - https://launchpad.net/bugs/552351 (bzr r10083) --- src/extension/internal/emf-win32-inout.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/extension/internal/emf-win32-inout.cpp b/src/extension/internal/emf-win32-inout.cpp index 2a8b99e87..baeb992f7 100644 --- a/src/extension/internal/emf-win32-inout.cpp +++ b/src/extension/internal/emf-win32-inout.cpp @@ -228,7 +228,7 @@ typedef struct emf_callback_data { static void output_style(PEMF_CALLBACK_DATA d, int iType) { - SVGOStringStream tmp_id; +// SVGOStringStream tmp_id; SVGOStringStream tmp_style; char tmp[1024] = {0}; @@ -238,8 +238,8 @@ output_style(PEMF_CALLBACK_DATA d, int iType) float stroke_rgb[3]; sp_color_get_rgb_floatv(&(d->dc[d->level].style.stroke.value.color), stroke_rgb); - tmp_id << "\n\tid=\"" << (d->id++) << "\""; - *(d->outsvg) += tmp_id.str().c_str(); +// tmp_id << "\n\tid=\"" << (d->id++) << "\""; +// *(d->outsvg) += tmp_id.str().c_str(); *(d->outsvg) += "\n\tstyle=\""; if (iType == EMR_STROKEPATH || !d->dc[d->level].fill_set) { tmp_style << "fill:none;"; @@ -801,13 +801,13 @@ myEnhMetaFileProc(HDC /*hDC*/, HANDLETABLE * /*lpHTable*/, ENHMETARECORD const * tmp_outsvg << " width=\"" << d->MMX << "mm\"\n" << - " height=\"" << d->MMY << "mm\"\n"; - tmp_outsvg << - " id=\"" << (d->id++) << "\">\n"; + " height=\"" << d->MMY << "mm\">\n"; +// tmp_outsvg << +// " id=\"" << (d->id++) << "\">\n"; - tmp_outsvg << - "id++) << "\">\n"; + tmp_outsvg << "\n"; +// "id++) << "\">\n"; if (pEmr->nHandles) { d->n_obj = pEmr->nHandles; @@ -1866,7 +1866,7 @@ myEnhMetaFileProc(HDC /*hDC*/, HANDLETABLE * /*lpHTable*/, ENHMETARECORD const * assert_empty_path(d, "EMR_EXTTEXTOUTW"); ts << " id++) << "\"\n"; +// ts << " id=\"" << (d->id++) << "\"\n"; ts << " xml:space=\"preserve\"\n"; ts << " x=\"" << x << "\"\n"; ts << " y=\"" << y << "\"\n"; -- cgit v1.2.3