After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 99375 - Empty Text, should not exist
Empty Text, should not exist
Status: RESOLVED OBSOLETE
Product: dia
Classification: Other
Component: general
0.90
Other All
: Normal enhancement
: ---
Assigned To: Dia maintainers
Dia maintainers
: 439892 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-11-23 19:18 UTC by Alan Horkan
Modified: 2019-03-20 11:03 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Alan Horkan 2002-11-23 19:18:15 UTC
how to find and remove empty text objects?  

okay, you could step through every text element using the
objects dialog but it is still not ideal.  editing the source file is
probably the easiest solution.  

Arguably totally empty text objects should not exist at all.  

I was going to make the summary a question but i find it hard to think when
it might make sense to have an empty text object, especialy since the
current text object is so hard to find.  

if empty text objects were automatically removed you would have to be very
careful about dia shapes that would include a text object that needed to be
filled in, but that could probalby be worked around by having the text
object set to some default value such as 'Label N'.
Comment 1 Lars Clausen 2002-11-26 20:27:08 UTC
But text objects are created empty.  I suppose you could remove them when they become unselected, but they have no way to tell when they're unselected.
Comment 2 Alan Horkan 2002-11-26 20:33:08 UTC
I guess i am just specifying one of the problems with the current text
widget because i really want something that acts more like a Web
TextArea.  

Perhaps i should close this and file a report instead requesting a
better text widget?
Comment 3 Lars Clausen 2002-11-26 21:56:43 UTC
Set to 0.92 (UI cleanup) milestone.  This would mostly fall under a better text input method.
Comment 4 Alan Horkan 2003-01-20 03:07:21 UTC
Is there a bug report for "Better Text Widget" yet?  (i dont see one,
should i create one?)

/me dreams of RichText (i.e. bold italic underline) and MathML

i was also thinking that when it comes to resizing we could resize a
text area but leave the font size alone.  i intend to take a careful
look at what Visio does and then i will add detailed comments to the
resize bugs.  
Comment 5 Alan Horkan 2004-11-27 00:22:48 UTC
Bugs should not target milestones we have already passed, mass retargetting to
version 0.95.  
Comment 6 Lars Clausen 2005-03-22 06:17:57 UTC
Should be possible to do with the next start/end text edit code, as soon as we
are sure it's used everywhere.
Comment 7 Lars Clausen 2005-04-10 20:32:42 UTC
Unselected rather than unfocused is probably better.  If you select several items, you can tab 
between them, wouldn't want to have it disappear in the middle of it.  On the other hand, we have 
to be careful that it doesn't disappear just because we internally deselect and reselect.  It's 
however probably only the standard textobj that needs to go, all other texts have other stuff and 
shouldn't just disappear.  Probably not going to work on it for 0.95, as I want the text select/
highlight stuff to be stable and tested  before doing this.
Comment 8 Lars Clausen 2006-12-02 06:56:45 UTC
Not getting the start/end text edit code this upcoming version.
Comment 9 Roland Stigge 2007-05-05 17:26:03 UTC
Just cross referencing this is also a Debian report at http://bugs.debian.org/405829
Comment 10 Mathijs 2007-12-12 17:01:26 UTC
There's another good reason to remove empty text objects: they can enlarge the bounding box of your figure without being clear why. This can be very annoying, since you only discover such an unusual large bounding box when you export a figure to (for example) EPS.
Comment 11 Hans Breuer 2008-04-05 09:10:04 UTC
*** Bug 439892 has been marked as a duplicate of this bug. ***
Comment 12 Hans Breuer 2008-05-10 12:28:28 UTC
Rather than messing with automatic object deletion I have just commited a fix for the IMO most annoying issue:

2008-05-10  Hans Breuer  <hans@breuer.org>

	* lib/diagramdata.c(layer_update_extents) : don't consider empty 
	objects for the overall extents. Fixes bug #531687 and lowers
	priority of bug #99375.
	
	* plug-ins/wmf/wmf.cpp : don't assume pango_context_load_font() can not
	fail. It does for font descriptions pointing to fonts not available
	on the particular system.

also there is a small plug-in to help the user remove empyt objects:

	* plug-ins/python/select_empty.py : allows to find objects with empty
	bounding boxes like empty text. See bug #99375.

The main issue of this bug will remain until someone comes up with a good working pacth.
Comment 13 GNOME Infrastructure Team 2019-03-20 11:03:06 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/dia/issues/68.