<table><tr><td style="">bruns added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D16165">View Revision</a></tr></table><br /><div><div><p>Can you enhance the Summary a little bit?</p>

<p>It took me some time to notice <tt style="background: #ebebeb; font-size: 13px;">Exiv2::Value::toFloat()</tt> is the same as <tt style="background: #ebebeb; font-size: 13px;">Exiv2::Value::toFloat(0)</tt> (default argument), and accessing an inexisting element (i.e. n >= count()) triggers undefined behaviour, according to the Exiv2 documentation.</p>

<p>Can you remove the "tries to look for <strong>two</strong> numbers" from the summary - IMHO it is misleading, as although a rational consist of numerator and denumerator, it is still 1 element (i.e. <tt style="background: #ebebeb; font-size: 13px;">count() >= 1</tt> is sufficient).</p>

<p>Also, <tt style="background: #ebebeb; font-size: 13px;">size()</tt> denotes the size in bytes, while we want the number of elements, i.e. <tt style="background: #ebebeb; font-size: 13px;">count()</tt>, see <tt style="background: #ebebeb; font-size: 13px;">Exiv2Extractor::fetchGpsDouble</tt> here and the <a href="http://www.exiv2.org/doc/classExiv2_1_1Value.html" class="remarkup-link" target="_blank" rel="noreferrer">Exiv2 API</a>.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R286 KFileMetaData</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D16165">https://phabricator.kde.org/D16165</a></div></div><br /><div><strong>To: </strong>poboiko, Baloo, Frameworks<br /><strong>Cc: </strong>bruns, astippich, kde-frameworks-devel, ashaposhnikov, michaelh, spoorun, ngraham, abrahams<br /></div>