grozin      14/07/10 10:46:29

  Added:                fbreader-0.99.4-mimetypes.patch
                        fbreader-0.99.4-qreal-cast.patch
  Log:
  Added casts to qreal (bug #515698), thanks to William Throwe 
<[email protected]>; added mimetypes to .desktop (bug #516794); depend on 
qtcore[ssl] (bug #462044); added -j1 (bug #484516)
  
  (Portage version: 2.2.10/cvs/Linux i686, signed Manifest commit with key 
0x3AFFCE974D34BD8C!)

Revision  Changes    Path
1.1                  app-text/fbreader/files/fbreader-0.99.4-mimetypes.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/fbreader/files/fbreader-0.99.4-mimetypes.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/fbreader/files/fbreader-0.99.4-mimetypes.patch?rev=1.1&content-type=text/plain

Index: fbreader-0.99.4-mimetypes.patch
===================================================================
diff -r -U1 fbreader-0.99.4.orig/fbreader/desktop/desktop 
fbreader-0.99.4/fbreader/desktop/desktop
--- fbreader-0.99.4.orig/fbreader/desktop/desktop       2012-11-30 
19:41:25.000000000 +0700
+++ fbreader-0.99.4/fbreader/desktop/desktop    2014-07-10 20:56:33.527638562 
+0700
@@ -23 +23,2 @@
 Categories=Office;Viewer;Literature;
+MimeType=application/epub+zip;application/rtf;application/x-fictionbook+xml;application/x-zip-compressed-fb2;application/x-mobipocket-ebook;application/xhtml+xml;text/html;text/plain;



1.1                  app-text/fbreader/files/fbreader-0.99.4-qreal-cast.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/fbreader/files/fbreader-0.99.4-qreal-cast.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/fbreader/files/fbreader-0.99.4-qreal-cast.patch?rev=1.1&content-type=text/plain

Index: fbreader-0.99.4-qreal-cast.patch
===================================================================
diff -r -U1 fbreader-0.99.4.orig/zlibrary/ui/src/qt4/tree/QtWaitingSpinner.cpp 
fbreader-0.99.4/zlibrary/ui/src/qt4/tree/QtWaitingSpinner.cpp
--- fbreader-0.99.4.orig/zlibrary/ui/src/qt4/tree/QtWaitingSpinner.cpp  
2012-11-30 19:41:25.000000000 +0700
+++ fbreader-0.99.4/zlibrary/ui/src/qt4/tree/QtWaitingSpinner.cpp       
2014-07-10 19:18:17.002886537 +0700
@@ -88,3 +88,3 @@
 void QtWaitingSpinner::setRoundness(qreal roundness) {
-       myRoundness = std::max(0.0, std::min(100.0, roundness));
+       myRoundness = std::max(static_cast<qreal>(0.0), 
std::min(static_cast<qreal>(100.0), roundness));
 }
@@ -150,3 +150,3 @@
        qreal resultAlpha = color.alphaF() - gradation * distance;
-       resultAlpha = std::min(1.0, std::max(0.0, resultAlpha)); //if alpha is 
out of bound, force it to bounds
+       resultAlpha = std::min(static_cast<qreal>(1.0), 
std::max(static_cast<qreal>(0.0), resultAlpha)); //if alpha is out of bound, 
force it to bounds
        color.setAlphaF(resultAlpha);




Reply via email to