[tracker] tracker-extract: Codestyle changes and comment fix for PDF extractor
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-extract: Codestyle changes and comment fix for PDF extractor
- Date: Mon, 14 Feb 2011 17:12:20 +0000 (UTC)
commit e48ee24d521588ba1d020f2eaf8b2983b1793370
Author: Philip Van Hoof <philip codeminded be>
Date: Mon Feb 14 18:10:26 2011 +0100
tracker-extract: Codestyle changes and comment fix for PDF extractor
src/tracker-extract/tracker-extract-pdf.cpp | 41 +++++++++++++++------------
1 files changed, 23 insertions(+), 18 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-pdf.cpp b/src/tracker-extract/tracker-extract-pdf.cpp
index a15ff8a..67caa9b 100644
--- a/src/tracker-extract/tracker-extract-pdf.cpp
+++ b/src/tracker-extract/tracker-extract-pdf.cpp
@@ -66,7 +66,9 @@ static TrackerExtractData data[] = {
* version because the TextOutputDev allows us to extract text and metadata much
* faster than the default CairoOutputDev that poppler-glib uses in case it got
* compiled with support for Cairo. Regretfully can't this be selected at
- * runtime in the poppler-glib bindings. Apologies to the GObject/GLib fans. */
+ * runtime in the poppler-glib bindings. Apologies to the GObject/GLib fans.
+ * Correction: Since recent versions of poppler-glib this can actually be
+ * selected. */
static gchar *
unicode_to_char (Unicode *unicode,
@@ -269,23 +271,26 @@ page_get_size (Page *page,
gdouble *width,
gdouble *height)
{
- gdouble page_width, page_height;
- gint rotate;
-
- rotate = page->getRotate ();
-
- if (rotate == 90 || rotate == 270) {
- page_height = page->getCropWidth ();
- page_width = page->getCropHeight ();
- } else {
- page_width = page->getCropWidth ();
- page_height = page->getCropHeight ();
- }
-
- if (width != NULL)
- *width = page_width;
- if (height != NULL)
- *height = page_height;
+ gdouble page_width, page_height;
+ gint rotate;
+
+ rotate = page->getRotate ();
+
+ if (rotate == 90 || rotate == 270) {
+ page_height = page->getCropWidth ();
+ page_width = page->getCropHeight ();
+ } else {
+ page_width = page->getCropWidth ();
+ page_height = page->getCropHeight ();
+ }
+
+ if (width != NULL) {
+ *width = page_width;
+ }
+
+ if (height != NULL) {
+ *height = page_height;
+ }
}
static gchar *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]