projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add c_str() methods for synfig::Time and synfig::TimePoint when _DEBUG is defined.
[synfig.git]
/
synfig-studio
/
trunk
/
src
/
gtkmm
/
renderer_timecode.cpp
diff --git
a/synfig-studio/trunk/src/gtkmm/renderer_timecode.cpp
b/synfig-studio/trunk/src/gtkmm/renderer_timecode.cpp
index
7d5f357
..
259df23
100644
(file)
--- a/
synfig-studio/trunk/src/gtkmm/renderer_timecode.cpp
+++ b/
synfig-studio/trunk/src/gtkmm/renderer_timecode.cpp
@@
-6,6
+6,7
@@
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
+** Copyright (c) 2007 Chris Moore
**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
@@
-146,10
+147,15
@@
Renderer_Timecode::render_vfunc(
gc->set_rgb_fg_color(Gdk::Color("#5f0000"));
try
{
gc->set_rgb_fg_color(Gdk::Color("#5f0000"));
try
{
+ int w, h;
layout->set_text(canvas->keyframe_list().find(cur_time)->get_description());
layout->set_text(canvas->keyframe_list().find(cur_time)->get_description());
+ layout->get_size(w, h);
+ get_work_area()->timecode_width = int(w*1.0/Pango::SCALE);
+ get_work_area()->timecode_height = int(h*1.0/Pango::SCALE);
}
catch(synfig::Exception::NotFound)
{
}
catch(synfig::Exception::NotFound)
{
+ get_work_area()->timecode_width = get_work_area()->timecode_height = 0;
return;
}
catch(...) {
return;
}
catch(...) {