Editing default opacity of annotation, results to creating invisible anotations, if opacity is not equal 100%. Reproducible: Always Steps to Reproduce: 1. Open Okular 2. Press F6 to show annotations bar 3. rigth-click annotations bar to configure it 4. Edit some item by changing opacity value, e.g. set 30% 5. Save changes 6. Try use edited annotation by highlighting some text Actual Results: Annotation is invisible, but if you rigth-click in text, you can edit anotation. You see 0% value for opacity. Expected Results: Opacity value is same as defined (e.g. 30%) If I open ~/.kde4/share/config/okularpartrc I see strange opacity="0\\,3" value: [Reviews] AnnotationTools=<tool type="strikeout" id="13"><engine type="TextSelector" color="#ff0000"><annotation opacity="0\\,3" type="StrikeOut" color="#ff0000"/></engine></tool> But the correct one should be: [Reviews] AnnotationTools=<tool type="strikeout" id="13"><engine type="TextSelector" color="#ff0000"><annotation opacity="0.3" type="StrikeOut" color="#ff0000"/></engine></tool>
Originally bug found in Okular 0.21.3 + KDE 4.14 I can reproduce bug in latest Okular 0.24.0 + KDE Framewoks 18.0 + KDE Plasma 5.5.4 + Qt 5.5.1
Git commit 41006445a9d8369d3891ea1feed7c977a3d0f1a5 by Albert Astals Cid. Committed on 07/02/2016 at 23:27. Pushed by aacid into branch 'Applications/15.12'. setAttribute with doubles is evil as it uses the current locale and we don't want that, use QString::number M +5 -5 conf/widgetannottools.cpp http://commits.kde.org/okular/41006445a9d8369d3891ea1feed7c977a3d0f1a5