Finally, I found the culprit!
debian/patches/warnings contains a patch for NedMainWindow::draw(...) in
mainwindow.cpp that was intended to fix a warning about an unused
variable. The patch moves the two lines 

        cairo_scaled_font_t *scaled_font;
        scaled_font = NedResource::getScaledFont(m_current_zoom_level);

into the

#ifdef HAS_SET_SCALED_FONT

The getScaledFont() method, however, has a side effect in that it calls
NedResource::createScaledFont(int zoom_level) (contained in
resources.cpp) (which itself contains several #ifdef HAS_SET_SCALED_FONT).

Obviously, createScaledFont must be called, whatever the value of
HAS_SET_SCALED_FONT is, because if I revert the patch then the PDF
export works as expected.


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to