projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't expand time fields to their full format (eg. "1s" -> "0h 0m 1s 0f") when they...
[synfig.git]
/
synfig-studio
/
trunk
/
src
/
gtkmm
/
duckmatic.cpp
diff --git
a/synfig-studio/trunk/src/gtkmm/duckmatic.cpp
b/synfig-studio/trunk/src/gtkmm/duckmatic.cpp
index
fec7061
..
d6cc012
100644
(file)
--- a/
synfig-studio/trunk/src/gtkmm/duckmatic.cpp
+++ b/
synfig-studio/trunk/src/gtkmm/duckmatic.cpp
@@
-99,7
+99,12
@@
Duckmatic::Duckmatic():
Duckmatic::~Duckmatic()
{
clear_ducks();
Duckmatic::~Duckmatic()
{
clear_ducks();
- //synfig::info("Duckmatic::~Duckmatic(): Deleted. Duck Count=%d",Duck::duck_count);
+
+ if (Duck::duck_count)
+ synfig::error("%d ducks not yet deleted!", Duck::duck_count);
+
+ if (getenv("SYNFIG_DEBUG_DESTRUCTORS"))
+ synfig::info("Duckmatic::~Duckmatic(): Deleted");
}
void
}
void
@@
-408,7
+413,7
@@
Duckmatic::end_duck_drag()
}
Point
}
Point
-Duckmatic::snap_point_to_grid(const Point& x, float radius)const
+Duckmatic::snap_point_to_grid(const
synfig::
Point& x, float radius)const
{
Point ret(x);
{
Point ret(x);
@@
-817,6
+822,7
@@
Duckmatic::find_bezier(synfig::Point pos, synfig::Real scale, synfig::Real radiu
bool
Duckmatic::save_sketch(const synfig::String& filename)const
{
bool
Duckmatic::save_sketch(const synfig::String& filename)const
{
+ ChangeLocale change_locale(LC_NUMERIC, "C");
std::ofstream file(filename.c_str());
if(!file)return false;
std::ofstream file(filename.c_str());
if(!file)return false;
@@
-850,6
+856,7
@@
Duckmatic::save_sketch(const synfig::String& filename)const
bool
Duckmatic::load_sketch(const synfig::String& filename)
{
bool
Duckmatic::load_sketch(const synfig::String& filename)
{
+ ChangeLocale change_locale(LC_NUMERIC, "C");
std::ifstream file(filename.c_str());
if(!file)
std::ifstream file(filename.c_str());
if(!file)