glom r1395 - in trunk: . glom/libglom/document glom/utility_widgets
- From: jhs svn gnome org
- To: svn-commits-list gnome org
- Subject: glom r1395 - in trunk: . glom/libglom/document glom/utility_widgets
- Date: Mon, 21 Jan 2008 11:12:00 +0000 (GMT)
Author: jhs
Date: Mon Jan 21 11:12:00 2008
New Revision: 1395
URL: http://svn.gnome.org/viewvc/glom?rev=1395&view=rev
Log:
2008-01-21 Johannes Schmid <johannes schmid openismus com>
* glom/libglom/document/document_glom.cc:
Fixed crasher in case there is no default layout group
* glom/utility_widgets/flowtable.cc:
Avoid division by zero
Modified:
trunk/ChangeLog
trunk/glom/libglom/document/document_glom.cc
trunk/glom/utility_widgets/flowtable.cc
Modified: trunk/glom/libglom/document/document_glom.cc
==============================================================================
--- trunk/glom/libglom/document/document_glom.cc (original)
+++ trunk/glom/libglom/document/document_glom.cc Mon Jan 21 11:12:00 2008
@@ -1356,7 +1356,7 @@
sharedptr<LayoutGroup> group = sharedptr<LayoutGroup>::create();
group->set_name("main");
group->m_columns_count = 1;
- result[1] = group;
+ result.push_back(group);
pTopLevel = group;
if(layout_name == "details") //The Details default layut is a bit more complicated.
Modified: trunk/glom/utility_widgets/flowtable.cc
==============================================================================
--- trunk/glom/utility_widgets/flowtable.cc (original)
+++ trunk/glom/utility_widgets/flowtable.cc Mon Jan 21 11:12:00 2008
@@ -1172,8 +1172,10 @@
{
int column_width;
get_column_height (0, m_children.size(), column_width);
-
- int column = drag_x / column_width;
+ int column = 0;
+
+ if (column_width != 0)
+ column = drag_x / column_width;
for (std::vector<FlowTableItem>::iterator cur_item = m_children.begin(); cur_item != m_children.end();
cur_item++)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]