SHA256
1
0
forked from pool/k3b
k3b/k3b-dont-count-used-capacity-twice.patch
Stephan Kulow bdde78acbb Accepting request 145798 from KDE:Distro:Factory
Add various bugfixes from upstream 2.0 branch (forwarded request 145797 from sumski)

OBS-URL: https://build.opensuse.org/request/show/145798
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/k3b?expand=0&rev=48
2012-12-19 19:50:05 +00:00

24 lines
841 B
Diff

From: Kevin Kofler <kevin.kofler@chello.at>
Date: Sat, 17 Sep 2011 21:34:23 +0000
Subject: K3b::IsOverburnAllowed: Don't count used capacity twice.
X-Git-Url: http://quickgit.kde.org/?p=k3b.git&a=commitdiff&h=8270d2853f2962facdf6f9ea6d669922d6c78aba
---
K3b::IsOverburnAllowed: Don't count used capacity twice.
CCBUG: 276002
---
--- a/libk3b/core/k3bglobals.cpp
+++ b/libk3b/core/k3bglobals.cpp
@@ -595,7 +595,7 @@
bool K3b::IsOverburnAllowed( const Msf& projectSize, const Msf& capacity, const Msf& usedCapacity )
{
return( k3bcore->globalSettings()->overburn() &&
- (projectSize + usedCapacity) <= ( capacity.lba() - usedCapacity.lba() + capacity.lba() / 4 ) ); // 25% tolerance in overburn mode
+ (projectSize + usedCapacity) <= ( capacity.lba() + capacity.lba() / 4 ) ); // 25% tolerance in overburn mode
}