[pitivi] ruler: don't sort self.scale, it's always kept sorted.
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pitivi] ruler: don't sort self.scale, it's always kept sorted.
- Date: Thu, 10 Sep 2009 12:07:52 +0000 (UTC)
commit acbbf8fade054035ce7a1897efbb1728d0584b27
Author: Alessandro Decina <alessandro d gmail com>
Date: Wed Sep 9 11:56:31 2009 +0200
ruler: don't sort self.scale, it's always kept sorted.
pitivi/ui/ruler.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/ui/ruler.py b/pitivi/ui/ruler.py
index 37e2280..ba5948f 100644
--- a/pitivi/ui/ruler.py
+++ b/pitivi/ui/ruler.py
@@ -349,7 +349,7 @@ class ScaleRuler(gtk.Layout, Zoomable, Loggable):
layout = self.create_pango_layout(time_to_string(0))
textwidth, textheight = layout.get_pixel_size()
- for s in sorted(self.scale):
+ for s in self.scale:
spacing = Zoomable.zoomratio * s
if spacing >= textwidth * 1.5:
break
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]