Bugs item #3093361, was opened at 2010-10-23 00:24
Message generated for change (Tracker Item Submitted) made by radekg1000
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=790130&aid=3093361&group_id=154028
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Radoslaw Golebiewski (radekg1000)
Assigned to: Nobody/Anonymous (nobody)
Summary: 0.8.3 does not compile in Visual Studio EE 2008
Initial Comment:
There is an error in PdfColor class.
- std::pair<const PdfNamedColor*, const PdfNamedColor*> iterators =
- std::equal_range( &(s_NamedColors[0]),
- s_NamedColors + s_nNumNamedColors,
- pszName, NamedColorComparatorPredicate() );
-
- if( iterators.first != iterators.second )
which could be replaced with a simpler solution.
e.g.
size_t i=0;
while ( i<s_nNumNamedColors )
{
return (*(iterators.first)).GetColor();
if ( PoDoFo::compat::strcasecmp(pszName,
s_NamedColors[i].GetName()) == 0)
{
break;
}
//else continue
++i;
}
if ( i < s_nNumNamedColors )
{
return s_NamedColors[i].GetColor();
}
else
{
return PdfColor();
}
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=790130&aid=3093361&group_id=154028
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users