Bug 335784 - Text not flowing around shapes with shadow
Summary: Text not flowing around shapes with shadow
Alias: None
Product: calligracommon
Classification: Applications
Component: flake (show other bugs)
Version: 2.8.2
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Calligra Bugs
Depends on:
Reported: 2014-06-04 10:41 UTC by Rafael Linux User
Modified: 2015-01-25 15:30 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Linux User 2014-06-04 10:41:35 UTC
If you apply a shadow to a internal created shape (not a imported SVG shape) the text flow around the "drag/resize" box, not the shape contour. But (and here is the more strange issue) if you disable the shadow (I'm not talking about "undo", just disable the shadow), text continues flowing around that box!!!!!

But going far away, if you insert an SVG shape, I can get to flow the text around the shape in anyway 

Reproducible: Always

Steps to Reproduce:
1. Insert a curved shape over a text. Text will flow around the shape.
2. Apply shadow to the shape (text will flow around the drag/resize box.
3. Disable shadow to the shape (text will NOT flow around the shape).

1. Insert a SVG shape (text will not flow around the SVG shape contour)
Actual Results:  
Text flow around shapes is not working right.

Expected Results:  
Text flowing around shapes / SVG imported shaped with or without shadow applied.

I didn't try it in others Calligra programs.
Comment 1 Inge Wallin 2014-06-04 12:32:09 UTC
Comment 2 Inge Wallin 2015-01-25 14:53:02 UTC
This is both a bug and not a bug.

It's not really a bug because after creating the chart the tool selected is the "shape handling" tool which, well, handles shapes. You can get out of this tool by selecting the Cell Formatting tool in the toolbox to the right.

But it is a bug because this behaviour is totally unnatural and difficult to understand at first.  When the pointer is clicked outside any shape it should automatically switch to the cell tool. This is how other spreadsheets work.
Comment 3 Inge Wallin 2015-01-25 14:55:05 UTC
Oops, wrong bug.  The above comment should be for bug 311178.
Comment 4 Elvis Stansvik 2015-01-25 15:27:18 UTC
Since this is really two issues, I've split this bug up into bug #343280 and bug #343279. Please subscribe to them if you are interested, Rafael.

As for the issue of runaround not returning to normal that you describe in your 3 step instructions, I'm just about to push a fix for that, which will close this bug.
Comment 5 Elvis Stansvik 2015-01-25 15:30:30 UTC
Git commit 14383881d83b095c4f64b667e2ff4b0491800e3f by Elvis Stansvik.
Committed on 25/01/2015 at 15:28.
Pushed by astan into branch 'calligra/2.9'.

Check for shadow visibility in text runaround.

We must check both that the shape has a shadow, and that it is
visible. This fixes the first part of bug #335784. The other issues
of the bug have been moved to bug #343279 and #343280.

M  +1    -1    libs/textlayout/KoTextLayoutObstruction.cpp