vcl/inc/fontattributes.hxx | 2 - vcl/source/outdev/font.cxx | 54 ++++++++++++++++++++++++++++++++++++++++----- 2 files changed, 50 insertions(+), 6 deletions(-)
New commits: commit 5a014c49b3183e6da6842119b4e0f92ab59b2843 Author: Chris Sherlock <chris.sherloc...@gmail.com> Date: Wed Jan 6 14:48:48 2016 +1100 vcl: init font metric variables in ImplFontAttributes constructors If you run valgrind on a number of the unit tests, you get errors, mostly because mbKernable has not been initialized and is in indeterminate state. I am initializing all font metric variables to default variables explicitly in the constructor now. Snippet from output of CppunitTest_sd_filter_test before change follows: make CppunitTest_sd_filters_test VALGRIND=memcheck [cut lots of irrelevant stuff] Testing file:///home/chris/repos/libreoffice/sd/qa/unit/data/odg/pass/CVE-2012-4233-2.odg: ==24149== Conditional jump or move depends on uninitialised value(s) ==24149== at 0xD75BBDC: OutputDevice::GetFontMetric() const (font.cxx:212) ==24149== by 0x1A358682: ImpEditEngine::RecalcFormatterFontMetrics(FormatterFontMetric&, SvxFont&) (impedit3.cxx:2826) ==24149== by 0x1A35AF86: ImpEditEngine::CreateAndInsertEmptyLine(ParaPortion*, unsigned int) (impedit3.cxx:1649) ==24149== by 0x1A362A3D: ImpEditEngine::CreateLines(int, unsigned int) (impedit3.cxx:625) ==24149== by 0x1A364BA0: ImpEditEngine::FormatDoc() (impedit3.cxx:390) ==24149== by 0x1A369982: ImpEditEngine::FormatAndUpdate(EditView*) (impedit3.cxx:4199) ==24149== by 0x1A31BCA4: EditEngine::SetUpdateMode(bool) (editeng.cxx:1436) ==24149== by 0x1D2DF8D0: SdrTextObj::AdjustTextFrameWidthAndHeight(Rectangle&, bool, bool) const (svdotxat.cxx:167) ==24149== by 0x1D2DFA4D: SdrTextObj::NbcAdjustTextFrameWidthAndHeight(bool, bool) (svdotxat.cxx:263) ==24149== by 0x1D1F15D0: sdr::properties::TextProperties::SetStyleSheet(SfxStyleSheet*, bool) (textproperties.cxx:356) ==24149== by 0x1D1EE027: sdr::properties::RectangleProperties::SetStyleSheet(SfxStyleSheet*, bool) (rectangleproperties.cxx:65) ==24149== by 0x1D1F324B: sdr::properties::AttributeProperties::SetModel(SdrModel*, SdrModel*) (attributeproperties.cxx:471) ==24149== by 0x1D2D0810: SdrTextObj::SetModel(SdrModel*) (svdotext.cxx:532) ==24149== by 0x1D284924: SdrObject::SetPage(SdrPage*) (svdobj.cxx:462) ==24149== by 0x1D286A74: SdrObjFactory::MakeNewObject(unsigned int, unsigned short, Rectangle const&, SdrPage*) (svdobj.cxx:3312) ==24149== by 0x1D3BEAB5: SvxDrawPage::_CreateSdrObject(com::sun::star::uno::Reference<com::sun::star::drawing::XShape> const&) (unopage.cxx:508) ==24149== by 0x1D53F88C: SvxFmDrawPage::_CreateSdrObject(com::sun::star::uno::Reference<com::sun::star::drawing::XShape> const&) (fmdpage.cxx:78) ==24149== by 0x1B59ECDF: SdGenericDrawPage::_CreateSdrObject(com::sun::star::uno::Reference<com::sun::star::drawing::XShape> const&) (unopage.cxx:401) ==24149== by 0x1D3BF1AF: SvxDrawPage::CreateSdrObject(com::sun::star::uno::Reference<com::sun::star::drawing::XShape> const&, bool) (unopage.cxx:838) ==24149== by 0x1D3BF37C: SvxDrawPage::add(com::sun::star::uno::Reference<com::sun::star::drawing::XShape> const&) (unopage.cxx:213) ==24149== by 0x1E6CFA87: SdXMLShapeContext::AddShape(com::sun::star::uno::Reference<com::sun::star::drawing::XShape>&) (ximpshap.cxx:427) ==24149== by 0x1E6D053A: SdXMLShapeContext::AddShape(rtl::OUString const&) (ximpshap.cxx:520) ==24149== by 0x1E6D3C93: SdXMLTextBoxShapeContext::StartElement(com::sun::star::uno::Reference<com::sun::star::xml::sax::XAttributeList> const&) (ximpshap.cxx:1689) ==24149== by 0x1E608E3A: SvXMLImport::startElement(rtl::OUString const&, com::sun::star::uno::Reference<com::sun::star::xml::sax::XAttributeList> const&) (xmlimp.cxx:737) ==24149== by 0x1FA10639: callbackStartElement (sax_expat.cxx:749) ==24149== by 0x1FA10639: call_callbackStartElement (sax_expat.cxx:247) ==24149== by 0x1FA303B9: doContent (xmlparse.c:2443) ==24149== by 0x1FA310CB: contentProcessor (xmlparse.c:2105) ==24149== by 0x1FA2F418: doProlog (xmlparse.c:4016) ==24149== by 0x1FA2FB94: prologProcessor (xmlparse.c:3739) ==24149== by 0x1FA3312F: XML_ParseBuffer (xmlparse.c:1651) ==24149== by 0x1FA0D359: (anonymous namespace)::SaxExpatParser_Impl::parse() (sax_expat.cxx:687) ==24149== by 0x1FA0E47E: (anonymous namespace)::SaxExpatParser::parseStream(com::sun::star::xml::sax::InputSource const&) (sax_expat.cxx:484) ==24149== by 0x1B30B4A2: ReadThroughComponent (sdxmlwrp.cxx:220) ==24149== by 0x1B30B4A2: (anonymous namespace)::ReadThroughComponent(com::sun::star::uno::Reference<com::sun::star::embed::XStorage> const&, com::sun::star::uno::Reference<com::sun::star::lang::XComponent>, char const*, char const*, com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext>&, char const*, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&, rtl::OUString const&, bool) (sdxmlwrp.cxx:392) ==24149== by 0x1B30E582: SdXMLFilter::Import(unsigned int&) (sdxmlwrp.cxx:660) ==24149== by 0x1B3CEA64: sd::DrawDocShell::ConvertFrom(SfxMedium&) (docshel4.cxx:462) ==24149== by 0x1BDEBBF4: SfxObjectShell::DoLoad(SfxMedium*) (objstor.cxx:785) ==24149== by 0x19CD3D1A: SdFiltersTest::load(rtl::OUString const&, rtl::OUString const&, rtl::OUString const&, SfxFilterFlags, SotClipboardFormatId, unsigned int) (filters-test.cxx:75) ==24149== by 0x1E2524AB: test::FiltersTest::recursiveScan(test::filterStatus, rtl::OUString const&, rtl::OUString const&, rtl::OUString const&, SfxFilterFlags, SotClipboardFormatId, unsigned int, bool) (filters-test.cxx:131) ==24149== by 0x1E252FE9: test::FiltersTest::testDir(rtl::OUString const&, rtl::OUString const&, rtl::OUString const&, SfxFilterFlags, SotClipboardFormatId, unsigned int, bool) (filters-test.cxx:157) ==24149== by 0x19CD3A32: SdFiltersTest::testCVEs() (filters-test.cxx:97) ==24149== by 0x4E94843: CppUnit::TestCaseMethodFunctor::operator()() const (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E8F5E2: CppUnit::ProtectorChain::ProtectFunctor::operator()() const (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E8F5E2: CppUnit::ProtectorChain::ProtectFunctor::operator()() const (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x6C44812: (anonymous namespace)::Prot::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) (unoexceptionprotector.cxx:63) ==24149== by 0x4E8F5E2: CppUnit::ProtectorChain::ProtectFunctor::operator()() const (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E85FF0: CppUnit::DefaultProtector::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E8F5E2: CppUnit::ProtectorChain::ProtectFunctor::operator()() const (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E8F476: CppUnit::ProtectorChain::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E9F4C4: CppUnit::TestResult::protect(CppUnit::Functor const&, CppUnit::Test*, std::string const&) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E94291: CppUnit::TestCase::run(CppUnit::TestResult*) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== ==24149== Conditional jump or move depends on uninitialised value(s) ==24149== at 0xD75A8E8: OutputDevice::ImplNewFont() const (font.cxx:1619) ==24149== by 0xD75E294: OutputDevice::GetTextHeight() const (text.cxx:942) ==24149== by 0x1A3A9EF5: SvxFont::QuickGetTextSize(OutputDevice const*, rtl::OUString const&, int, int, long*) const (svxfont.cxx:403) ==24149== by 0x1A360D3A: ImpEditEngine::CreateLines(int, unsigned int) (impedit3.cxx:1092) ==24149== by 0x1A364BA0: ImpEditEngine::FormatDoc() (impedit3.cxx:390) ==24149== by 0x1A369982: ImpEditEngine::FormatAndUpdate(EditView*) (impedit3.cxx:4199) ==24149== by 0x1A31BCA4: EditEngine::SetUpdateMode(bool) (editeng.cxx:1436) ==24149== by 0x1A3EA098: Outliner::SetText(OutlinerParaObject const&) (outliner.cxx:616) ==24149== by 0x1D2DF8EE: SdrTextObj::AdjustTextFrameWidthAndHeight(Rectangle&, bool, bool) const (svdotxat.cxx:172) ==24149== by 0x1D2DFA4D: SdrTextObj::NbcAdjustTextFrameWidthAndHeight(bool, bool) (svdotxat.cxx:263) ==24149== by 0x1D2D0B55: SdrTextObj::NbcSetOutlinerParaObjectForText(OutlinerParaObject*, SdrText*) (svdotext.cxx:1433) ==24149== by 0x1D451C49: SvxTextEditSourceImpl::UpdateData() (unoshtxt.cxx:877) ==24149== by 0x1D451F3C: SvxTextEditSourceImpl::unlock() (unoshtxt.cxx:909) ==24149== by 0x1D43C0DD: SvxShape::removeActionLock() (unoshape.cxx:3866) ==24149== by 0x1E6D96CE: SdXMLShapeContext::EndElement() (ximpshap.cxx:409) ==24149== by 0x1E5FB704: SvXMLImport::endElement(rtl::OUString const&) (xmlimp.cxx:768) ==24149== by 0x1FA101C9: callbackEndElement (sax_expat.cxx:761) ==24149== by 0x1FA101C9: call_callbackEndElement (sax_expat.cxx:251) ==24149== by 0x1FA307B2: doContent (xmlparse.c:2532) ==24149== by 0x1FA310CB: contentProcessor (xmlparse.c:2105) ==24149== by 0x1FA2F418: doProlog (xmlparse.c:4016) ==24149== by 0x1FA2FB94: prologProcessor (xmlparse.c:3739) ==24149== by 0x1FA3312F: XML_ParseBuffer (xmlparse.c:1651) ==24149== by 0x1FA0D359: (anonymous namespace)::SaxExpatParser_Impl::parse() (sax_expat.cxx:687) ==24149== by 0x1FA0E47E: (anonymous namespace)::SaxExpatParser::parseStream(com::sun::star::xml::sax::InputSource const&) (sax_expat.cxx:484) ==24149== by 0x1B30B4A2: ReadThroughComponent (sdxmlwrp.cxx:220) ==24149== by 0x1B30B4A2: (anonymous namespace)::ReadThroughComponent(com::sun::star::uno::Reference<com::sun::star::embed::XStorage> const&, com::sun::star::uno::Reference<com::sun::star::lang::XComponent>, char const*, char const*, com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext>&, char const*, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&, rtl::OUString const&, bool) (sdxmlwrp.cxx:392) ==24149== by 0x1B30E582: SdXMLFilter::Import(unsigned int&) (sdxmlwrp.cxx:660) ==24149== by 0x1B3CEA64: sd::DrawDocShell::ConvertFrom(SfxMedium&) (docshel4.cxx:462) ==24149== by 0x1BDEBBF4: SfxObjectShell::DoLoad(SfxMedium*) (objstor.cxx:785) ==24149== by 0x19CD3D1A: SdFiltersTest::load(rtl::OUString const&, rtl::OUString const&, rtl::OUString const&, SfxFilterFlags, SotClipboardFormatId, unsigned int) (filters-test.cxx:75) ==24149== by 0x1E2524AB: test::FiltersTest::recursiveScan(test::filterStatus, rtl::OUString const&, rtl::OUString const&, rtl::OUString const&, SfxFilterFlags, SotClipboardFormatId, unsigned int, bool) (filters-test.cxx:131) ==24149== by 0x1E252FE9: test::FiltersTest::testDir(rtl::OUString const&, rtl::OUString const&, rtl::OUString const&, SfxFilterFlags, SotClipboardFormatId, unsigned int, bool) (filters-test.cxx:157) ==24149== by 0x19CD3A32: SdFiltersTest::testCVEs() (filters-test.cxx:97) ==24149== by 0x4E94843: CppUnit::TestCaseMethodFunctor::operator()() const (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E8F5E2: CppUnit::ProtectorChain::ProtectFunctor::operator()() const (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E8F5E2: CppUnit::ProtectorChain::ProtectFunctor::operator()() const (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x6C44812: (anonymous namespace)::Prot::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) (unoexceptionprotector.cxx:63) ==24149== by 0x4E8F5E2: CppUnit::ProtectorChain::ProtectFunctor::operator()() const (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E85FF0: CppUnit::DefaultProtector::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E8F5E2: CppUnit::ProtectorChain::ProtectFunctor::operator()() const (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E8F476: CppUnit::ProtectorChain::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E9F4C4: CppUnit::TestResult::protect(CppUnit::Functor const&, CppUnit::Test*, std::string const&) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E94291: CppUnit::TestCase::run(CppUnit::TestResult*) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E94F1D: CppUnit::TestComposite::doRunChildTests(CppUnit::TestResult*) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E94DA7: CppUnit::TestComposite::run(CppUnit::TestResult*) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E94F1D: CppUnit::TestComposite::doRunChildTests(CppUnit::TestResult*) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E94DA7: CppUnit::TestComposite::run(CppUnit::TestResult*) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4EA3A3F: CppUnit::TestRunner::WrappingSuite::run(CppUnit::TestResult*) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E9F253: CppUnit::TestResult::runTest(CppUnit::Test*) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4EA3CCC: CppUnit::TestRunner::run(CppUnit::TestResult&, std::string const&) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x404152: (anonymous namespace)::ProtectedFixtureFunctor::run() const (cppunittester.cxx:281) ==24149== ==24149== Conditional jump or move depends on uninitialised value(s) ==24149== at 0xD75A8E8: OutputDevice::ImplNewFont() const (font.cxx:1619) ==24149== by 0xD75C28F: OutputDevice::GetFontMetric() const (font.cxx:189) ==24149== by 0x1A358682: ImpEditEngine::RecalcFormatterFontMetrics(FormatterFontMetric&, SvxFont&) (impedit3.cxx:2826) ==24149== by 0x1A3607BE: ImpEditEngine::CreateLines(int, unsigned int) (impedit3.cxx:1332) ==24149== by 0x1A364BA0: ImpEditEngine::FormatDoc() (impedit3.cxx:390) ==24149== by 0x1A369982: ImpEditEngine::FormatAndUpdate(EditView*) (impedit3.cxx:4199) ==24149== by 0x1A31BCA4: EditEngine::SetUpdateMode(bool) (editeng.cxx:1436) ==24149== by 0x1A3EA098: Outliner::SetText(OutlinerParaObject const&) (outliner.cxx:616) ==24149== by 0x1D2DF8EE: SdrTextObj::AdjustTextFrameWidthAndHeight(Rectangle&, bool, bool) const (svdotxat.cxx:172) ==24149== by 0x1D2DFA4D: SdrTextObj::NbcAdjustTextFrameWidthAndHeight(bool, bool) (svdotxat.cxx:263) ==24149== by 0x1D2D0B55: SdrTextObj::NbcSetOutlinerParaObjectForText(OutlinerParaObject*, SdrText*) (svdotext.cxx:1433) ==24149== by 0x1D451C49: SvxTextEditSourceImpl::UpdateData() (unoshtxt.cxx:877) ==24149== by 0x1D451F3C: SvxTextEditSourceImpl::unlock() (unoshtxt.cxx:909) ==24149== by 0x1D43C0DD: SvxShape::removeActionLock() (unoshape.cxx:3866) ==24149== by 0x1E6D96CE: SdXMLShapeContext::EndElement() (ximpshap.cxx:409) ==24149== by 0x1E5FB704: SvXMLImport::endElement(rtl::OUString const&) (xmlimp.cxx:768) ==24149== by 0x1FA101C9: callbackEndElement (sax_expat.cxx:761) ==24149== by 0x1FA101C9: call_callbackEndElement (sax_expat.cxx:251) ==24149== by 0x1FA307B2: doContent (xmlparse.c:2532) ==24149== by 0x1FA310CB: contentProcessor (xmlparse.c:2105) ==24149== by 0x1FA2F418: doProlog (xmlparse.c:4016) ==24149== by 0x1FA2FB94: prologProcessor (xmlparse.c:3739) ==24149== by 0x1FA3312F: XML_ParseBuffer (xmlparse.c:1651) ==24149== by 0x1FA0D359: (anonymous namespace)::SaxExpatParser_Impl::parse() (sax_expat.cxx:687) ==24149== by 0x1FA0E47E: (anonymous namespace)::SaxExpatParser::parseStream(com::sun::star::xml::sax::InputSource const&) (sax_expat.cxx:484) ==24149== by 0x1B30B4A2: ReadThroughComponent (sdxmlwrp.cxx:220) ==24149== by 0x1B30B4A2: (anonymous namespace)::ReadThroughComponent(com::sun::star::uno::Reference<com::sun::star::embed::XStorage> const&, com::sun::star::uno::Reference<com::sun::star::lang::XComponent>, char const*, char const*, com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext>&, char const*, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&, rtl::OUString const&, bool) (sdxmlwrp.cxx:392) ==24149== by 0x1B30E582: SdXMLFilter::Import(unsigned int&) (sdxmlwrp.cxx:660) ==24149== by 0x1B3CEA64: sd::DrawDocShell::ConvertFrom(SfxMedium&) (docshel4.cxx:462) ==24149== by 0x1BDEBBF4: SfxObjectShell::DoLoad(SfxMedium*) (objstor.cxx:785) ==24149== by 0x19CD3D1A: SdFiltersTest::load(rtl::OUString const&, rtl::OUString const&, rtl::OUString const&, SfxFilterFlags, SotClipboardFormatId, unsigned int) (filters-test.cxx:75) ==24149== by 0x1E2524AB: test::FiltersTest::recursiveScan(test::filterStatus, rtl::OUString const&, rtl::OUString const&, rtl::OUString const&, SfxFilterFlags, SotClipboardFormatId, unsigned int, bool) (filters-test.cxx:131) ==24149== by 0x1E252FE9: test::FiltersTest::testDir(rtl::OUString const&, rtl::OUString const&, rtl::OUString const&, SfxFilterFlags, SotClipboardFormatId, unsigned int, bool) (filters-test.cxx:157) ==24149== by 0x19CD3A32: SdFiltersTest::testCVEs() (filters-test.cxx:97) ==24149== by 0x4E94843: CppUnit::TestCaseMethodFunctor::operator()() const (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E8F5E2: CppUnit::ProtectorChain::ProtectFunctor::operator()() const (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E8F5E2: CppUnit::ProtectorChain::ProtectFunctor::operator()() const (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x6C44812: (anonymous namespace)::Prot::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) (unoexceptionprotector.cxx:63) ==24149== by 0x4E8F5E2: CppUnit::ProtectorChain::ProtectFunctor::operator()() const (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E85FF0: CppUnit::DefaultProtector::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E8F5E2: CppUnit::ProtectorChain::ProtectFunctor::operator()() const (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E8F476: CppUnit::ProtectorChain::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E9F4C4: CppUnit::TestResult::protect(CppUnit::Functor const&, CppUnit::Test*, std::string const&) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E94291: CppUnit::TestCase::run(CppUnit::TestResult*) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E94F1D: CppUnit::TestComposite::doRunChildTests(CppUnit::TestResult*) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E94DA7: CppUnit::TestComposite::run(CppUnit::TestResult*) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E94F1D: CppUnit::TestComposite::doRunChildTests(CppUnit::TestResult*) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E94DA7: CppUnit::TestComposite::run(CppUnit::TestResult*) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4EA3A3F: CppUnit::TestRunner::WrappingSuite::run(CppUnit::TestResult*) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E9F253: CppUnit::TestResult::runTest(CppUnit::Test*) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4EA3CCC: CppUnit::TestRunner::run(CppUnit::TestResult&, std::string const&) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x404152: (anonymous namespace)::ProtectedFixtureFunctor::run() const (cppunittester.cxx:281) ==24149== ==24149== Conditional jump or move depends on uninitialised value(s) ==24149== at 0xD75BBDC: OutputDevice::GetFontMetric() const (font.cxx:212) ==24149== by 0x1A358682: ImpEditEngine::RecalcFormatterFontMetrics(FormatterFontMetric&, SvxFont&) (impedit3.cxx:2826) ==24149== by 0x1A3607BE: ImpEditEngine::CreateLines(int, unsigned int) (impedit3.cxx:1332) ==24149== by 0x1A364BA0: ImpEditEngine::FormatDoc() (impedit3.cxx:390) ==24149== by 0x1A369982: ImpEditEngine::FormatAndUpdate(EditView*) (impedit3.cxx:4199) ==24149== by 0x1A31BCA4: EditEngine::SetUpdateMode(bool) (editeng.cxx:1436) ==24149== by 0x1A3EA098: Outliner::SetText(OutlinerParaObject const&) (outliner.cxx:616) ==24149== by 0x1D2DF8EE: SdrTextObj::AdjustTextFrameWidthAndHeight(Rectangle&, bool, bool) const (svdotxat.cxx:172) ==24149== by 0x1D2DFA4D: SdrTextObj::NbcAdjustTextFrameWidthAndHeight(bool, bool) (svdotxat.cxx:263) ==24149== by 0x1D2D0B55: SdrTextObj::NbcSetOutlinerParaObjectForText(OutlinerParaObject*, SdrText*) (svdotext.cxx:1433) ==24149== by 0x1D451C49: SvxTextEditSourceImpl::UpdateData() (unoshtxt.cxx:877) ==24149== by 0x1D451F3C: SvxTextEditSourceImpl::unlock() (unoshtxt.cxx:909) ==24149== by 0x1D43C0DD: SvxShape::removeActionLock() (unoshape.cxx:3866) ==24149== by 0x1E6D96CE: SdXMLShapeContext::EndElement() (ximpshap.cxx:409) ==24149== by 0x1E5FB704: SvXMLImport::endElement(rtl::OUString const&) (xmlimp.cxx:768) ==24149== by 0x1FA101C9: callbackEndElement (sax_expat.cxx:761) ==24149== by 0x1FA101C9: call_callbackEndElement (sax_expat.cxx:251) ==24149== by 0x1FA307B2: doContent (xmlparse.c:2532) ==24149== by 0x1FA310CB: contentProcessor (xmlparse.c:2105) ==24149== by 0x1FA2F418: doProlog (xmlparse.c:4016) ==24149== by 0x1FA2FB94: prologProcessor (xmlparse.c:3739) ==24149== by 0x1FA3312F: XML_ParseBuffer (xmlparse.c:1651) ==24149== by 0x1FA0D359: (anonymous namespace)::SaxExpatParser_Impl::parse() (sax_expat.cxx:687) ==24149== by 0x1FA0E47E: (anonymous namespace)::SaxExpatParser::parseStream(com::sun::star::xml::sax::InputSource const&) (sax_expat.cxx:484) ==24149== by 0x1B30B4A2: ReadThroughComponent (sdxmlwrp.cxx:220) ==24149== by 0x1B30B4A2: (anonymous namespace)::ReadThroughComponent(com::sun::star::uno::Reference<com::sun::star::embed::XStorage> const&, com::sun::star::uno::Reference<com::sun::star::lang::XComponent>, char const*, char const*, com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext>&, char const*, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&, rtl::OUString const&, bool) (sdxmlwrp.cxx:392) ==24149== by 0x1B30E582: SdXMLFilter::Import(unsigned int&) (sdxmlwrp.cxx:660) ==24149== by 0x1B3CEA64: sd::DrawDocShell::ConvertFrom(SfxMedium&) (docshel4.cxx:462) ==24149== by 0x1BDEBBF4: SfxObjectShell::DoLoad(SfxMedium*) (objstor.cxx:785) ==24149== by 0x19CD3D1A: SdFiltersTest::load(rtl::OUString const&, rtl::OUString const&, rtl::OUString const&, SfxFilterFlags, SotClipboardFormatId, unsigned int) (filters-test.cxx:75) ==24149== by 0x1E2524AB: test::FiltersTest::recursiveScan(test::filterStatus, rtl::OUString const&, rtl::OUString const&, rtl::OUString const&, SfxFilterFlags, SotClipboardFormatId, unsigned int, bool) (filters-test.cxx:131) ==24149== by 0x1E252FE9: test::FiltersTest::testDir(rtl::OUString const&, rtl::OUString const&, rtl::OUString const&, SfxFilterFlags, SotClipboardFormatId, unsigned int, bool) (filters-test.cxx:157) ==24149== by 0x19CD3A32: SdFiltersTest::testCVEs() (filters-test.cxx:97) ==24149== by 0x4E94843: CppUnit::TestCaseMethodFunctor::operator()() const (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E8F5E2: CppUnit::ProtectorChain::ProtectFunctor::operator()() const (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E8F5E2: CppUnit::ProtectorChain::ProtectFunctor::operator()() const (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x6C44812: (anonymous namespace)::Prot::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) (unoexceptionprotector.cxx:63) ==24149== by 0x4E8F5E2: CppUnit::ProtectorChain::ProtectFunctor::operator()() const (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E85FF0: CppUnit::DefaultProtector::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E8F5E2: CppUnit::ProtectorChain::ProtectFunctor::operator()() const (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E8F476: CppUnit::ProtectorChain::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E9F4C4: CppUnit::TestResult::protect(CppUnit::Functor const&, CppUnit::Test*, std::string const&) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E94291: CppUnit::TestCase::run(CppUnit::TestResult*) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E94F1D: CppUnit::TestComposite::doRunChildTests(CppUnit::TestResult*) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E94DA7: CppUnit::TestComposite::run(CppUnit::TestResult*) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E94F1D: CppUnit::TestComposite::doRunChildTests(CppUnit::TestResult*) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E94DA7: CppUnit::TestComposite::run(CppUnit::TestResult*) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4EA3A3F: CppUnit::TestRunner::WrappingSuite::run(CppUnit::TestResult*) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E9F253: CppUnit::TestResult::runTest(CppUnit::Test*) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4EA3CCC: CppUnit::TestRunner::run(CppUnit::TestResult&, std::string const&) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x404152: (anonymous namespace)::ProtectedFixtureFunctor::run() const (cppunittester.cxx:281) ==24149== by 0x40495A: sal_main() (cppunittester.cxx:431) ==24149== warn:legacy.osl:24149:1:embeddedobj/source/general/xcreator.cxx:202: No media type is specified for the object! ==24149== Conditional jump or move depends on uninitialised value(s) ==24149== at 0xD75A8E8: OutputDevice::ImplNewFont() const (font.cxx:1619) ==24149== by 0xD75E294: OutputDevice::GetTextHeight() const (text.cxx:942) ==24149== by 0x1A3A9DBA: SvxFont::GetPhysTxtSize(OutputDevice const*, rtl::OUString const&) (svxfont.cxx:383) ==24149== by 0x1A35AF13: ImpEditEngine::CreateAndInsertEmptyLine(ParaPortion*, unsigned int) (impedit3.cxx:1644) ==24149== by 0x1A362A3D: ImpEditEngine::CreateLines(int, unsigned int) (impedit3.cxx:625) ==24149== by 0x1A364BA0: ImpEditEngine::FormatDoc() (impedit3.cxx:390) ==24149== by 0x1A369982: ImpEditEngine::FormatAndUpdate(EditView*) (impedit3.cxx:4199) ==24149== by 0x1A31BCA4: EditEngine::SetUpdateMode(bool) (editeng.cxx:1436) ==24149== by 0x1A3EA098: Outliner::SetText(OutlinerParaObject const&) (outliner.cxx:616) ==24149== by 0x1D2DF8EE: SdrTextObj::AdjustTextFrameWidthAndHeight(Rectangle&, bool, bool) const (svdotxat.cxx:172) ==24149== by 0x1D2DFA4D: SdrTextObj::NbcAdjustTextFrameWidthAndHeight(bool, bool) (svdotxat.cxx:263) ==24149== by 0x1D2D0B55: SdrTextObj::NbcSetOutlinerParaObjectForText(OutlinerParaObject*, SdrText*) (svdotext.cxx:1433) ==24149== by 0x1D451C49: SvxTextEditSourceImpl::UpdateData() (unoshtxt.cxx:877) ==24149== by 0x1D451F3C: SvxTextEditSourceImpl::unlock() (unoshtxt.cxx:909) ==24149== by 0x1D43C0DD: SvxShape::removeActionLock() (unoshape.cxx:3866) ==24149== by 0x1E6D96CE: SdXMLShapeContext::EndElement() (ximpshap.cxx:409) ==24149== by 0x1E5FB704: SvXMLImport::endElement(rtl::OUString const&) (xmlimp.cxx:768) ==24149== by 0x1FA101C9: callbackEndElement (sax_expat.cxx:761) ==24149== by 0x1FA101C9: call_callbackEndElement (sax_expat.cxx:251) ==24149== by 0x1FA307B2: doContent (xmlparse.c:2532) ==24149== by 0x1FA310CB: contentProcessor (xmlparse.c:2105) ==24149== by 0x1FA3312F: XML_ParseBuffer (xmlparse.c:1651) ==24149== by 0x1FA0D359: (anonymous namespace)::SaxExpatParser_Impl::parse() (sax_expat.cxx:687) ==24149== by 0x1FA0E47E: (anonymous namespace)::SaxExpatParser::parseStream(com::sun::star::xml::sax::InputSource const&) (sax_expat.cxx:484) ==24149== by 0x1B30B4A2: ReadThroughComponent (sdxmlwrp.cxx:220) ==24149== by 0x1B30B4A2: (anonymous namespace)::ReadThroughComponent(com::sun::star::uno::Reference<com::sun::star::embed::XStorage> const&, com::sun::star::uno::Reference<com::sun::star::lang::XComponent>, char const*, char const*, com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext>&, char const*, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&, rtl::OUString const&, bool) (sdxmlwrp.cxx:392) ==24149== by 0x1B30E582: SdXMLFilter::Import(unsigned int&) (sdxmlwrp.cxx:660) ==24149== by 0x1B3CEA64: sd::DrawDocShell::ConvertFrom(SfxMedium&) (docshel4.cxx:462) ==24149== by 0x1BDEBBF4: SfxObjectShell::DoLoad(SfxMedium*) (objstor.cxx:785) ==24149== by 0x19CD3D1A: SdFiltersTest::load(rtl::OUString const&, rtl::OUString const&, rtl::OUString const&, SfxFilterFlags, SotClipboardFormatId, unsigned int) (filters-test.cxx:75) ==24149== by 0x1E2524AB: test::FiltersTest::recursiveScan(test::filterStatus, rtl::OUString const&, rtl::OUString const&, rtl::OUString const&, SfxFilterFlags, SotClipboardFormatId, unsigned int, bool) (filters-test.cxx:131) ==24149== by 0x1E252FE9: test::FiltersTest::testDir(rtl::OUString const&, rtl::OUString const&, rtl::OUString const&, SfxFilterFlags, SotClipboardFormatId, unsigned int, bool) (filters-test.cxx:157) ==24149== by 0x19CD3A32: SdFiltersTest::testCVEs() (filters-test.cxx:97) ==24149== by 0x4E94843: CppUnit::TestCaseMethodFunctor::operator()() const (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E8F5E2: CppUnit::ProtectorChain::ProtectFunctor::operator()() const (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E8F5E2: CppUnit::ProtectorChain::ProtectFunctor::operator()() const (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x6C44812: (anonymous namespace)::Prot::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) (unoexceptionprotector.cxx:63) ==24149== by 0x4E8F5E2: CppUnit::ProtectorChain::ProtectFunctor::operator()() const (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E85FF0: CppUnit::DefaultProtector::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E8F5E2: CppUnit::ProtectorChain::ProtectFunctor::operator()() const (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E8F476: CppUnit::ProtectorChain::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E9F4C4: CppUnit::TestResult::protect(CppUnit::Functor const&, CppUnit::Test*, std::string const&) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E94291: CppUnit::TestCase::run(CppUnit::TestResult*) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E94F1D: CppUnit::TestComposite::doRunChildTests(CppUnit::TestResult*) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E94DA7: CppUnit::TestComposite::run(CppUnit::TestResult*) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E94F1D: CppUnit::TestComposite::doRunChildTests(CppUnit::TestResult*) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E94DA7: CppUnit::TestComposite::run(CppUnit::TestResult*) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4EA3A3F: CppUnit::TestRunner::WrappingSuite::run(CppUnit::TestResult*) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4E9F253: CppUnit::TestResult::runTest(CppUnit::Test*) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x4EA3CCC: CppUnit::TestRunner::run(CppUnit::TestResult&, std::string const&) (in /home/chris/repos/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0.0.2) ==24149== by 0x404152: (anonymous namespace)::ProtectedFixtureFunctor::run() const (cppunittester.cxx:281) ==24149== by 0x40495A: sal_main() (cppunittester.cxx:431) ==24149== warn:legacy.tools:24149:1:svl/source/items/poolitem.cxx:114: destroying item in use warn:legacy.tools:24149:1:svl/source/items/poolitem.cxx:114: destroying item in use warn:legacy.tools:24149:1:svl/source/items/poolitem.cxx:114: destroying item in use Change-Id: Id662aaa279d8df75551fd4ff47f0043cd39e54b0 diff --git a/vcl/inc/fontattributes.hxx b/vcl/inc/fontattributes.hxx index 528f6f4..1ce7a4a 100644 --- a/vcl/inc/fontattributes.hxx +++ b/vcl/inc/fontattributes.hxx @@ -43,7 +43,7 @@ class FontSelectPattern; class ImplFontAttributes { public: - explicit ImplFontAttributes() {} + explicit ImplFontAttributes(); explicit ImplFontAttributes( const FontSelectPattern& ); // device independent font functions diff --git a/vcl/source/outdev/font.cxx b/vcl/source/outdev/font.cxx index 237cca2..ffb4188 100644 --- a/vcl/source/outdev/font.cxx +++ b/vcl/source/outdev/font.cxx @@ -1741,18 +1741,62 @@ bool ImplFontAttributes::CompareDeviceIndependentFontAttributes(const ImplFontAt return true; } +ImplFontAttributes::ImplFontAttributes() + : mnWidth ( 0 ) + , mnOrientation( 0 ) + , mnAscent( 0 ) + , mnDescent( 0 ) + , mnIntLeading( 0 ) + , mnExtLeading( 0 ) + , mnSlant( 0 ) + , mnMinKashida( 0 ) + , mbScalableFont( false ) + , mbTrueTypeFont( false ) + , mbKernableFont( false ) + , mbFullstopCentered( false ) + , mnBulletOffset( 0 ) + , mnUnderlineSize( 0 ) + , mnUnderlineOffset( 0 ) + , mnBUnderlineSize( 0 ) + , mnBUnderlineOffset( 0 ) + , mnDUnderlineSize( 0 ) + , mnDUnderlineOffset1( 0 ) + , mnDUnderlineOffset2( 0 ) + , mnWUnderlineSize( 0 ) + , mnWUnderlineOffset( 0 ) + , mnAboveUnderlineSize( 0 ) + , mnAboveUnderlineOffset( 0 ) + , mnAboveBUnderlineSize( 0 ) + , mnAboveBUnderlineOffset( 0 ) + , mnAboveDUnderlineSize( 0 ) + , mnAboveDUnderlineOffset1( 0 ) + , mnAboveDUnderlineOffset2( 0 ) + , mnAboveWUnderlineSize( 0 ) + , mnAboveWUnderlineOffset( 0 ) + , mnStrikeoutSize( 0 ) + , mnStrikeoutOffset( 0 ) + , mnBStrikeoutSize( 0 ) + , mnBStrikeoutOffset( 0 ) + , mnDStrikeoutSize( 0 ) + , mnDStrikeoutOffset1( 0 ) + , mnDStrikeoutOffset2( 0 ) +{ + // empty +} + ImplFontAttributes::ImplFontAttributes( const FontSelectPattern& rFontSelData ) - : mnWidth ( rFontSelData.mnWidth) - , mnOrientation( (short)(rFontSelData.mnOrientation)) + : mnWidth ( rFontSelData.mnWidth ) + , mnOrientation( (short)(rFontSelData.mnOrientation) ) , mnAscent( 0 ) , mnDescent( 0 ) , mnIntLeading( 0 ) , mnExtLeading( 0 ) , mnSlant( 0 ) , mnMinKashida( 0 ) - , mbScalableFont(false) - , mbTrueTypeFont(false) - , mbFullstopCentered(false) + , mbScalableFont( false ) + , mbTrueTypeFont( false ) + , mbKernableFont( false ) + , mbFullstopCentered( false ) , mnBulletOffset( 0 ) , mnUnderlineSize( 0 ) , mnUnderlineOffset( 0 ) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits