Kaydet (Commit) 91c05902 authored tarafından Michael Stahl's avatar Michael Stahl

lotuswordpro: PVS-Studio V674 comparing long to double

Not sure if the GetMRest is supposed to be multiplied with something,
but ~nobody knows or uses that format anyway so just suppress the warning.

Change-Id: I883d090901cf0be0978579ade24beaed6f6ae5c1
üst f1b5381e
...@@ -174,7 +174,7 @@ OUString LwpBulletStyleMgr::RegisterBulletStyle(LwpPara* pPara, LwpBulletOverrid ...@@ -174,7 +174,7 @@ OUString LwpBulletStyleMgr::RegisterBulletStyle(LwpPara* pPara, LwpBulletOverrid
pListStyle->SetListBullet(nC, pSilverBullet->GetBulletChar(), pSilverBullet->GetBulletFontName(), pListStyle->SetListBullet(nC, pSilverBullet->GetBulletChar(), pSilverBullet->GetBulletFontName(),
pSilverBullet->GetPrefix(), pSilverBullet->GetSuffix()); pSilverBullet->GetPrefix(), pSilverBullet->GetSuffix());
if (pIndent->GetMRest() > 0.001) if (pIndent->GetMRest() > 0) /* note: used to be 0.001, no idea why */
{ {
pListStyle->SetListPosition(nC, 0.0, pListStyle->SetListPosition(nC, 0.0,
LwpTools::ConvertToMetric(LwpTools::ConvertFromUnits(pIndent->GetMRest())), 0.0, eAlign); LwpTools::ConvertToMetric(LwpTools::ConvertFromUnits(pIndent->GetMRest())), 0.0, eAlign);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment